mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user