diff options
author | drh <> | 2023-02-07 21:55:14 +0000 |
---|---|---|
committer | drh <> | 2023-02-07 21:55:14 +0000 |
commit | d4af882a1bebbefa02cb40ba85b78c82d1deebd9 (patch) | |
tree | 601fa788e8c334f3153b5f7fd7fc227eb08f7517 /src/sqliteInt.h | |
parent | c3ea539dc21f193c277851ab44109aef8de8a15d (diff) | |
download | sqlite-d4af882a1bebbefa02cb40ba85b78c82d1deebd9.tar.gz sqlite-d4af882a1bebbefa02cb40ba85b78c82d1deebd9.zip |
Add support for the 'txn' argument to date/time functions that works like
'now' but keeps the same time for the entire transaction.
FossilOrigin-Name: 5e4f45af96247e29910403a63ac148cb313b005f9c014b37a9a49d98f5fef9a6
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 3da5f13d5..638260c5d 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -1621,6 +1621,7 @@ struct sqlite3 { u8 nSqlExec; /* Number of pending OP_SqlExec opcodes */ u8 eOpenState; /* Current condition of the connection */ int nextPagesize; /* Pagesize after VACUUM if >0 */ + i64 txnTime; /* Timestamp for current transaction */ i64 nChange; /* Value returned by sqlite3_changes() */ i64 nTotalChange; /* Value returned by sqlite3_total_changes() */ int aLimit[SQLITE_N_LIMIT]; /* Limits */ @@ -5341,6 +5342,7 @@ FuncDef *sqlite3VtabOverloadFunction(sqlite3 *,FuncDef*, int nArg, Expr*); void sqlite3VtabUsesAllSchemas(sqlite3_index_info*); #endif sqlite3_int64 sqlite3StmtCurrentTime(sqlite3_context*); +sqlite3_int64 sqlite3TxnCurrentTime(sqlite3_context*); int sqlite3VdbeParameterIndex(Vdbe*, const char*, int); int sqlite3TransferBindings(sqlite3_stmt *, sqlite3_stmt *); void sqlite3ParseObjectInit(Parse*,sqlite3*); |