Skip to content

Commit 099c4e4

Browse files
author
Artyom Ivanov
committed
Cast transaction number to correct type
1 parent 7f721f6 commit 099c4e4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/isql/show.epp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,22 +523,22 @@ void SHOW_dbb_parameters(Firebird::IAttachment* db_handle,
523523

524524
case isc_info_oldest_transaction :
525525
value_out = p.getBigInt();
526-
isqlGlob.printf("Transaction - oldest = %" SQUADFORMAT"%s", value_out, separator);
526+
isqlGlob.printf("Transaction - oldest = %" UQUADFORMAT"%s", static_cast<TraNumber>(value_out), separator);
527527
break;
528528

529529
case isc_info_oldest_active :
530530
value_out = p.getBigInt();
531-
isqlGlob.printf("Transaction - oldest active = %" SQUADFORMAT"%s", value_out, separator);
531+
isqlGlob.printf("Transaction - oldest active = %" UQUADFORMAT"%s", static_cast<TraNumber>(value_out), separator);
532532
break;
533533

534534
case isc_info_oldest_snapshot :
535535
value_out = p.getBigInt();
536-
isqlGlob.printf("Transaction - oldest snapshot = %" SQUADFORMAT"%s", value_out, separator);
536+
isqlGlob.printf("Transaction - oldest snapshot = %" UQUADFORMAT"%s", static_cast<TraNumber>(value_out), separator);
537537
break;
538538

539539
case isc_info_next_transaction :
540540
value_out = p.getBigInt();
541-
isqlGlob.printf("Transaction - Next = %" SQUADFORMAT"%s", value_out, separator);
541+
isqlGlob.printf("Transaction - Next = %" UQUADFORMAT"%s", static_cast<TraNumber>(value_out), separator);
542542
break;
543543

544544
case isc_info_base_level:
@@ -560,7 +560,7 @@ void SHOW_dbb_parameters(Firebird::IAttachment* db_handle,
560560
isqlGlob.printf("%s%s", msg, separator);
561561
}
562562
else
563-
isqlGlob.printf("Transaction in limbo = %" SQUADFORMAT"%s", value_out, separator);
563+
isqlGlob.printf("Transaction in limbo = %" UQUADFORMAT"%s", static_cast<TraNumber>(value_out), separator);
564564
break;
565565

566566
case isc_info_ods_version:

0 commit comments

Comments
 (0)