aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2021-03-10 16:35:37 +0000
committerdrh <>2021-03-10 16:35:37 +0000
commit099b385d17d424ab6fba5ed46e9735dc4b04f79b (patch)
tree78b2afaff140f54913678d2553a0b71a428469d1 /src/sqliteInt.h
parentbc3c4e0830151a44d1ebd3f36c151d171d6dcf2a (diff)
downloadsqlite-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/sqliteInt.h')
-rw-r--r--src/sqliteInt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 913de54dd..0107d74b6 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1481,6 +1481,11 @@ void sqlite3CryptFunc(sqlite3_context*,int,sqlite3_value**);
#endif /* SQLITE_OMIT_DEPRECATED */
#define SQLITE_TRACE_NONLEGACY_MASK 0x0f /* Normal flags */
+/*
+** Maximum number of sqlite3.aDb[] entries. This is the number of attached
+** databases plus 2 for "main" and "temp".
+*/
+#define SQLITE_MAX_DB (SQLITE_MAX_ATTACHED+2)
/*
** Each database connection is an instance of the following structure.