diff options
author | drh <drh@noemail.net> | 2018-07-18 19:09:07 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-07-18 19:09:07 +0000 |
commit | ea99a31c59d5b5ec711d54ef4e4a4f1eae6710a4 (patch) | |
tree | 4fc83eccaf77aa7d0198fe1ffefa16f19fd3b7df /src/main.c | |
parent | 378a2da91eaf4552abdede3904bcf62516538046 (diff) | |
download | sqlite-ea99a31c59d5b5ec711d54ef4e4a4f1eae6710a4.tar.gz sqlite-ea99a31c59d5b5ec711d54ef4e4a4f1eae6710a4.zip |
Add the SQLITE_FCNTL_DATA_VERSION file control
FossilOrigin-Name: a5087c5c87ad65f92e3bc96bbc84afb43faf10ab6b9ed3ba16304b5c60ad069f
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index e0b1c23ad..9c10cab6a 100644 --- a/src/main.c +++ b/src/main.c @@ -3711,6 +3711,9 @@ int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){ }else if( op==SQLITE_FCNTL_JOURNAL_POINTER ){ *(sqlite3_file**)pArg = sqlite3PagerJrnlFile(pPager); rc = SQLITE_OK; + }else if( op==SQLITE_FCNTL_DATA_VERSION ){ + *(unsigned int*)pArg = sqlite3PagerDataVersion(pPager); + rc = SQLITE_OK; }else{ rc = sqlite3OsFileControl(fd, op, pArg); } |