1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Limit the maximum SQLITE_MAX_ATTACHED to 127, since a signed character

is sometimes used to store the database index.

FossilOrigin-Name: f1c76c7c4c7d16855db60d16e23ecdf8d7ca862a
This commit is contained in:
drh
2014-07-21 20:07:17 +00:00
parent a7ab6d8165
commit 215c0c82fa
3 changed files with 9 additions and 9 deletions

View File

@@ -2101,8 +2101,8 @@ static const int aHardLimit[] = {
#if SQLITE_MAX_FUNCTION_ARG<0 || SQLITE_MAX_FUNCTION_ARG>1000
# error SQLITE_MAX_FUNCTION_ARG must be between 0 and 1000
#endif
#if SQLITE_MAX_ATTACHED<0
# error SQLITE_MAX_ATTACHED must be greater than 0
#if SQLITE_MAX_ATTACHED<0 || SQLITE_MAX_ATTACHED>127
# error SQLITE_MAX_ATTACHED must be between 0 and 127
#endif
#if SQLITE_MAX_LIKE_PATTERN_LENGTH<1
# error SQLITE_MAX_LIKE_PATTERN_LENGTH must be at least 1