diff options
author | drh <drh@noemail.net> | 2013-12-06 15:37:35 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-12-06 15:37:35 +0000 |
commit | 1b1f30bb5e9fe8e508c8953f4d29d29cb155a510 (patch) | |
tree | 7e9be93ab59fcee0a68104c3727b4cf62f7fd620 /src/os_win.c | |
parent | 6f04b95f02eeb62bcf3901d6d4483bdf68c000ee (diff) | |
download | sqlite-1b1f30bb5e9fe8e508c8953f4d29d29cb155a510.tar.gz sqlite-1b1f30bb5e9fe8e508c8953f4d29d29cb155a510.zip |
Add code to detect if the database file is moved or deleted out from under
SQLite and return an SQLITE_IOERR_NODB.
FossilOrigin-Name: 8759a8e4d83b163e315eff316cf163f6ea42f2bb
Diffstat (limited to 'src/os_win.c')
-rw-r--r-- | src/os_win.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_win.c b/src/os_win.c index 22052a3fe..56b546fb4 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -3192,6 +3192,7 @@ static int winSectorSize(sqlite3_file *id){ static int winDeviceCharacteristics(sqlite3_file *id){ winFile *p = (winFile*)id; return SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN | + SQLITE_IOCAP_UNMOVABLE_WHEN_OPEN | ((p->ctrlFlags & WINFILE_PSOW)?SQLITE_IOCAP_POWERSAFE_OVERWRITE:0); } |