SQLite

Check-in [f2906c4451]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add extra checking of the database extended error code.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | winLockHandle
Files: files | file ages | folders
SHA1: f2906c44519d76db5bc36013369ae498b80655a8
User & Date: mistachkin 2014-05-30 16:54:09.869
Context
2014-05-30
21:01
Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid. (check-in: a4df4a5b34 user: mistachkin tags: trunk)
16:54
Add extra checking of the database extended error code. (Closed-Leaf check-in: f2906c4451 user: mistachkin tags: winLockHandle)
16:42
Add tests for the invalid file handle detection logic in the winLock() function. (check-in: ed5a9eb4f3 user: mistachkin tags: winLockHandle)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/win32lock.test.
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180

do_test win32lock-3.4 {
  set handle [lindex [file_control_win32_set_handle db 0] end]
  list [catchsql {
    BEGIN EXCLUSIVE;
    INSERT INTO t1 VALUES(6);
    COMMIT;
  }] [file_control_win32_set_handle db $handle]
} {{1 {disk I/O error}} {0 0}}

db2 close
db close
sqlite3_shutdown
test_sqlite3_log
sqlite3_initialize
finish_test







|
|







165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180

do_test win32lock-3.4 {
  set handle [lindex [file_control_win32_set_handle db 0] end]
  list [catchsql {
    BEGIN EXCLUSIVE;
    INSERT INTO t1 VALUES(6);
    COMMIT;
  }] [file_control_win32_set_handle db $handle] [sqlite3_extended_errcode db]
} {{1 {disk I/O error}} {0 0} SQLITE_IOERR_LOCK}

db2 close
db close
sqlite3_shutdown
test_sqlite3_log
sqlite3_initialize
finish_test