diff options
Diffstat (limited to 'src/pragma.c')
-rw-r--r-- | src/pragma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c index 7be0f7f25..84f29c2fd 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1969,7 +1969,7 @@ void sqlite3Pragma( ** Checkpoint the database. */ case PragTyp_WAL_CHECKPOINT: { - int iBt = (pId2->z?iDb:SQLITE_MAX_ATTACHED); + int iBt = (pId2->z?iDb:SQLITE_MAX_DB); int eMode = SQLITE_CHECKPOINT_PASSIVE; if( zRight ){ if( sqlite3StrICmp(zRight, "full")==0 ){ |