mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Task CORE-6016 - Rename RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_CN') to RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_NUMBER').
This commit is contained in:
parent
e38999f658
commit
05b5d16c44
@ -105,7 +105,7 @@ Usage:
|
||||
|
|
||||
GLOBAL_CN | Most current value of global Commit Number counter
|
||||
|
|
||||
SNAPSHOT_CN | Value of Commit Number of currently database snapshot: either
|
||||
SNAPSHOT_NUMBER | Value of Snapshot Number of currently database snapshot: either
|
||||
| transaction level (for SNAPSHOT or CONSISTENCY transaction),
|
||||
| or request level (for READ COMMITTED READ CONSISTENCY
|
||||
| transaction). NULL, if snapshot is not exist.
|
||||
|
@ -340,7 +340,7 @@ const char
|
||||
ISOLATION_LEVEL_NAME[] = "ISOLATION_LEVEL",
|
||||
LOCK_TIMEOUT_NAME[] = "LOCK_TIMEOUT",
|
||||
READ_ONLY_NAME[] = "READ_ONLY",
|
||||
SNAPSHOT_CN_NAME[] = "SNAPSHOT_CN",
|
||||
SNAPSHOT_NUMBER_NAME[] = "SNAPSHOT_NUMBER",
|
||||
// DDL_TRIGGER namespace
|
||||
DDL_EVENT_NAME[] = "DDL_EVENT",
|
||||
EVENT_TYPE_NAME[] = "EVENT_TYPE",
|
||||
@ -3947,7 +3947,7 @@ dsc* evlGetContext(thread_db* tdbb, const SysFunction*, const NestValueArray& ar
|
||||
resultStr = (transaction->tra_flags & TRA_readonly) ? TRUE_VALUE : FALSE_VALUE;
|
||||
else if (nameStr == GLOBAL_CN_NAME)
|
||||
resultStr.printf("%" SQUADFORMAT, dbb->dbb_tip_cache->getGlobalCommitNumber());
|
||||
else if (nameStr == SNAPSHOT_CN_NAME)
|
||||
else if (nameStr == SNAPSHOT_NUMBER_NAME)
|
||||
{
|
||||
if (!(transaction->tra_flags & TRA_read_committed))
|
||||
resultStr.printf("%" SQUADFORMAT, transaction->tra_snapshot_number);
|
||||
|
Loading…
Reference in New Issue
Block a user