| Index: third_party/sqlite/sqlite-src-3100200/src/test_config.c
|
| diff --git a/third_party/sqlite/src/src/test_config.c b/third_party/sqlite/sqlite-src-3100200/src/test_config.c
|
| similarity index 91%
|
| copy from third_party/sqlite/src/src/test_config.c
|
| copy to third_party/sqlite/sqlite-src-3100200/src/test_config.c
|
| index 2c11f713fbd7384bc7f6c0aca2359a0c064d8656..30b421e00b693566d26a09c18afa0ba9ae970051 100644
|
| --- a/third_party/sqlite/src/src/test_config.c
|
| +++ b/third_party/sqlite/sqlite-src-3100200/src/test_config.c
|
| @@ -41,7 +41,7 @@
|
| ** procedures use this to determine when tests should be omitted.
|
| */
|
| static void set_options(Tcl_Interp *interp){
|
| -#ifdef HAVE_MALLOC_USABLE_SIZE
|
| +#if HAVE_MALLOC_USABLE_SIZE
|
| Tcl_SetVar2(interp, "sqlite_options", "malloc_usable_size", "1",
|
| TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -119,6 +119,18 @@ static void set_options(Tcl_Interp *interp){
|
| Tcl_SetVar2(interp, "sqlite_options", "8_3_names", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_CURSOR_HINTS
|
| + Tcl_SetVar2(interp, "sqlite_options", "cursorhints", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "cursorhints", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| +#ifdef SQLITE_ENABLE_HIDDEN_COLUMNS
|
| + Tcl_SetVar2(interp, "sqlite_options", "hiddencolumns", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "hiddencolumns", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #ifdef SQLITE_ENABLE_MEMSYS3
|
| Tcl_SetVar2(interp, "sqlite_options", "mem3", "1", TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -131,6 +143,12 @@ static void set_options(Tcl_Interp *interp){
|
| Tcl_SetVar2(interp, "sqlite_options", "mem5", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_SNAPSHOT
|
| + Tcl_SetVar2(interp, "sqlite_options", "snapshot", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "snapshot", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #ifdef SQLITE_MUTEX_OMIT
|
| Tcl_SetVar2(interp, "sqlite_options", "mutex", "0", TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -155,12 +173,30 @@ static void set_options(Tcl_Interp *interp){
|
| Tcl_SetVar2(interp, "sqlite_options", "analyze", "1", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_API_ARMOR
|
| + Tcl_SetVar2(interp, "sqlite_options", "api_armor", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "api_armor", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #ifdef SQLITE_ENABLE_ATOMIC_WRITE
|
| Tcl_SetVar2(interp, "sqlite_options", "atomicwrite", "1", TCL_GLOBAL_ONLY);
|
| #else
|
| Tcl_SetVar2(interp, "sqlite_options", "atomicwrite", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_JSON1
|
| + Tcl_SetVar2(interp, "sqlite_options", "json1", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "json1", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| +#ifdef SQLITE_LIKE_DOESNT_MATCH_BLOBS
|
| + Tcl_SetVar2(interp, "sqlite_options", "like_match_blobs", "0", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "like_match_blobs", "1", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #ifdef SQLITE_OMIT_ATTACH
|
| Tcl_SetVar2(interp, "sqlite_options", "attach", "0", TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -334,6 +370,12 @@ static void set_options(Tcl_Interp *interp){
|
| Tcl_SetVar2(interp, "sqlite_options", "fts3", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_FTS5
|
| + Tcl_SetVar2(interp, "sqlite_options", "fts5", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "fts5", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #if defined(SQLITE_ENABLE_FTS3) && !defined(SQLITE_DISABLE_FTS3_UNICODE)
|
| Tcl_SetVar2(interp, "sqlite_options", "fts3_unicode", "1", TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -424,6 +466,12 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY);
|
| Tcl_SetVar2(interp, "sqlite_options", "or_opt", "1", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_RBU
|
| + Tcl_SetVar2(interp, "sqlite_options", "rbu", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "rbu", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #ifdef SQLITE_OMIT_PAGER_PRAGMAS
|
| Tcl_SetVar2(interp, "sqlite_options", "pager_pragmas", "0", TCL_GLOBAL_ONLY);
|
| #else
|
| @@ -484,6 +532,12 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY);
|
| Tcl_SetVar2(interp, "sqlite_options", "stat3", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_STMT_SCANSTATUS
|
| + Tcl_SetVar2(interp, "sqlite_options", "scanstatus", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "scanstatus", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #if !defined(SQLITE_ENABLE_LOCKING_STYLE)
|
| # if defined(__APPLE__)
|
| # define SQLITE_ENABLE_LOCKING_STYLE 1
|
| @@ -621,6 +675,12 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY);
|
| Tcl_SetVar2(interp, "sqlite_options", "yytrackmaxstackdepth", "0", TCL_GLOBAL_ONLY);
|
| #endif
|
|
|
| +#ifdef SQLITE_ENABLE_SQLLOG
|
| + Tcl_SetVar2(interp, "sqlite_options", "sqllog", "1", TCL_GLOBAL_ONLY);
|
| +#else
|
| + Tcl_SetVar2(interp, "sqlite_options", "sqllog", "0", TCL_GLOBAL_ONLY);
|
| +#endif
|
| +
|
| #define LINKVAR(x) { \
|
| static const int cv_ ## x = SQLITE_ ## x; \
|
| Tcl_LinkVar(interp, "SQLITE_" #x, (char *)&(cv_ ## x), \
|
| @@ -638,7 +698,6 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY);
|
| LINKVAR( MAX_PAGE_COUNT );
|
| LINKVAR( MAX_LIKE_PATTERN_LENGTH );
|
| LINKVAR( MAX_TRIGGER_DEPTH );
|
| - LINKVAR( DEFAULT_TEMP_CACHE_SIZE );
|
| LINKVAR( DEFAULT_CACHE_SIZE );
|
| LINKVAR( DEFAULT_PAGE_SIZE );
|
| LINKVAR( DEFAULT_FILE_FORMAT );
|
|
|