Re: [sqlite] SQLITE_CANTOPEN error / bug?

2009-04-17 Thread Filip Navara
Proposed fix: --- os_win.old 2009-04-09 20:41:18.0 +0200 +++ os_win.c2009-04-17 16:33:47.904710700 +0200 @@ -1317,7 +1317,7 @@ }else{ dwCreationDisposition = OPEN_EXISTING; } - if( flags & SQLITE_OPEN_MAIN_DB ){ + if( !(flags & SQLITE_OPEN_EXCLUSIVE) ){ dwShareMode =

Re: [sqlite] SQLITE_CANTOPEN error / bug?

2009-04-17 Thread Filip Navara
Hi again, the bug was introduced in revision 1.573 of pager.c. Best regards, Filip Navara On Fri, Apr 17, 2009 at 2:26 PM, Filip Navara wrote: > > Hello, > > today I tried to upgrade our software from SQLite version 3.6.3 to version > 3.6.13 and I am hitting a race condition that I believe is

[sqlite] SQLITE_CANTOPEN error / bug?

2009-04-17 Thread Filip Navara
Hello, today I tried to upgrade our software from SQLite version 3.6.3 to version 3.6.13 and I am hitting a race condition that I believe is a bug in the library. The library is compiled as thread-safe (and it's reproducible even with the precompiled DLL). Sometimes sqlite3_step fails with SQLITE_