diff options
author | drh <drh@noemail.net> | 2011-01-26 19:46:22 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-01-26 19:46:22 +0000 |
commit | 0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf (patch) | |
tree | 59e73b79ce0438638e8b90bbd446e80f0745fcf4 /src/main.c | |
parent | b69577d3b8fbf944ba032f39b4b6d5eb3ff99c85 (diff) | |
download | sqlite-0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf.tar.gz sqlite-0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf.zip |
Update all built-in VFSes to return SQLITE_OK for the
SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the
xFileControl methods to return SQLITE_NOTFOUND for unrecognized
operation codes.
FossilOrigin-Name: 6f2c72a0f6579db3f40c079436ca40e3e52bd6d9
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 4b93a2ba5..88dfcf0f3 100644 --- a/src/main.c +++ b/src/main.c @@ -816,7 +816,7 @@ const char *sqlite3ErrStr(int rc){ /* SQLITE_INTERRUPT */ "interrupted", /* SQLITE_IOERR */ "disk I/O error", /* SQLITE_CORRUPT */ "database disk image is malformed", - /* SQLITE_NOTFOUND */ 0, + /* SQLITE_NOTFOUND */ "unknown operation", /* SQLITE_FULL */ "database or disk is full", /* SQLITE_CANTOPEN */ "unable to open database file", /* SQLITE_PROTOCOL */ "locking protocol", @@ -2364,6 +2364,8 @@ int sqlite3_file_control(sqlite3 *db, const char *zDbName, int op, void *pArg){ rc = SQLITE_OK; }else if( fd->pMethods ){ rc = sqlite3OsFileControl(fd, op, pArg); + }else{ + rc = SQLITE_NOTFOUND; } sqlite3BtreeLeave(pBtree); } |