1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Test cases added. Fix the query mode.

FossilOrigin-Name: a9d8794ae949df570466a84836882bc8bed95c7c
This commit is contained in:
drh
2011-07-26 16:23:25 +00:00
parent f0b190d94c
commit 253cea5c6f
6 changed files with 113 additions and 14 deletions

View File

@@ -3471,7 +3471,7 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
case SQLITE_FCNTL_PERSIST_WAL: {
int bPersist = *(int*)pArg;
if( bPersist<0 ){
bPersist = (pFile->ctrlFlags & UNIXFILE_PERSIST_WAL)!=0;
*(int*)pArg = (pFile->ctrlFlags & UNIXFILE_PERSIST_WAL)!=0;
}else if( bPersist==0 ){
pFile->ctrlFlags &= ~UNIXFILE_PERSIST_WAL;
}else{