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

Continuing progress on the journal_mode pragma. It still does not work. (CVS 5027)

FossilOrigin-Name: 4a72a7bb9c5793cdaf4ee038482053e042d8db54
This commit is contained in:
drh
2008-04-17 20:59:37 +00:00
parent dafc0ce818
commit fdc40e9156
6 changed files with 63 additions and 52 deletions

View File

@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the PRAGMA command.
**
** $Id: pragma.c,v 1.175 2008/04/17 17:02:02 drh Exp $
** $Id: pragma.c,v 1.176 2008/04/17 20:59:38 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -461,9 +461,11 @@ void sqlite3Pragma(
*/
int ii;
assert(pDb==&db->aDb[0]);
for(ii=2; ii<db->nDb; ii++){
pPager = sqlite3BtreePager(db->aDb[ii].pBt);
sqlite3PagerJournalMode(pPager, eMode);
for(ii=1; ii<db->nDb; ii++){
if( db->aDb[ii].pBt ){
pPager = sqlite3BtreePager(db->aDb[ii].pBt);
sqlite3PagerJournalMode(pPager, eMode);
}
}
db->dfltJournalMode = eMode;
}