diff options
author | drh <> | 2021-03-10 16:35:37 +0000 |
---|---|---|
committer | drh <> | 2021-03-10 16:35:37 +0000 |
commit | 099b385d17d424ab6fba5ed46e9735dc4b04f79b (patch) | |
tree | 78b2afaff140f54913678d2553a0b71a428469d1 /src/pragma.c | |
parent | bc3c4e0830151a44d1ebd3f36c151d171d6dcf2a (diff) | |
download | sqlite-099b385d17d424ab6fba5ed46e9735dc4b04f79b.tar.gz sqlite-099b385d17d424ab6fba5ed46e9735dc4b04f79b.zip |
Do not confuse the constant SQLITE_MAX_ATTACHED with the maximum number of
schemas. Add the new SQLITE_MAX_DB constant for the maximum number of
schemas. [forum:/forumpost/a006d86f72|Forum post a006d86f72].
FossilOrigin-Name: 7b65fb9f7bd616f834633afd64b3448bf9ca2b6e4cc6d6c01e75d1d877c88a79
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 ){ |