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/expr.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/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index b66556b03..bd12ad9f0 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2585,7 +2585,7 @@ int sqlite3FindInIndex( /* Code an OP_Transaction and OP_TableLock for <table>. */ iDb = sqlite3SchemaToIndex(db, pTab->pSchema); - assert( iDb>=0 && iDb<SQLITE_MAX_ATTACHED ); + assert( iDb>=0 && iDb<SQLITE_MAX_DB ); sqlite3CodeVerifySchema(pParse, iDb); sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName); |