/ Check-in [f1c76c7c]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Limit the maximum SQLITE_MAX_ATTACHED to 127, since a signed character is sometimes used to store the database index.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f1c76c7c4c7d16855db60d16e23ecdf8d7ca862a
User & Date: drh 2014-07-21 20:07:17
Context
2014-07-22
00:40
For the OR-optimization, avoid generating OP_OpenRead opcodes that reopen exactly the same index. check-in: b67a6e33 user: drh tags: trunk
2014-07-21
20:07
Limit the maximum SQLITE_MAX_ATTACHED to 127, since a signed character is sometimes used to store the database index. check-in: f1c76c7c user: drh tags: trunk
15:44
Allow the SQLITE_MAX_ATTACHED compile-time option to be larger than 62. The default limit on the number of attached databases remains 10. check-in: 1a817ae2 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

  2097   2097   #endif
  2098   2098   #if SQLITE_MAX_VDBE_OP<40
  2099   2099   # error SQLITE_MAX_VDBE_OP must be at least 40
  2100   2100   #endif
  2101   2101   #if SQLITE_MAX_FUNCTION_ARG<0 || SQLITE_MAX_FUNCTION_ARG>1000
  2102   2102   # error SQLITE_MAX_FUNCTION_ARG must be between 0 and 1000
  2103   2103   #endif
  2104         -#if SQLITE_MAX_ATTACHED<0
  2105         -# error SQLITE_MAX_ATTACHED must be greater than 0
         2104  +#if SQLITE_MAX_ATTACHED<0 || SQLITE_MAX_ATTACHED>127
         2105  +# error SQLITE_MAX_ATTACHED must be between 0 and 127
  2106   2106   #endif
  2107   2107   #if SQLITE_MAX_LIKE_PATTERN_LENGTH<1
  2108   2108   # error SQLITE_MAX_LIKE_PATTERN_LENGTH must be at least 1
  2109   2109   #endif
  2110   2110   #if SQLITE_MAX_COLUMN>32767
  2111   2111   # error SQLITE_MAX_COLUMN must not exceed 32767
  2112   2112   #endif