Index: third_party/sqlite/src/src/test_config.c |
diff --git a/third_party/sqlite/src/src/test_config.c b/third_party/sqlite/src/src/test_config.c |
index 30b421e00b693566d26a09c18afa0ba9ae970051..f409b1ca6fb3f118d000b22cd745dfc6a31bbc88 100644 |
--- a/third_party/sqlite/src/src/test_config.c |
+++ b/third_party/sqlite/src/src/test_config.c |
@@ -24,7 +24,11 @@ |
# include "os_win.h" |
#endif |
-#include "tcl.h" |
+#if defined(INCLUDE_SQLITE_TCL_H) |
+# include "sqlite_tcl.h" |
+#else |
+# include "tcl.h" |
+#endif |
#include <stdlib.h> |
#include <string.h> |
@@ -79,6 +83,13 @@ static void set_options(Tcl_Interp *interp){ |
Tcl_SetVar2(interp, "sqlite_options", "debug", "0", TCL_GLOBAL_ONLY); |
#endif |
+#ifdef SQLITE_DEFAULT_CKPTFULLFSYNC |
+ Tcl_SetVar2(interp, "sqlite_options", "default_ckptfullfsync", |
+ SQLITE_DEFAULT_CKPTFULLFSYNC ? "1" : "0", TCL_GLOBAL_ONLY); |
+#else |
+ Tcl_SetVar2(interp, "sqlite_options", "default_ckptfullfsync", "0", TCL_GLOBAL_ONLY); |
+#endif |
+ |
#ifdef SQLITE_DIRECT_OVERFLOW_READ |
Tcl_SetVar2(interp, "sqlite_options", "direct_read", "1", TCL_GLOBAL_ONLY); |
#else |
@@ -97,6 +108,12 @@ static void set_options(Tcl_Interp *interp){ |
Tcl_SetVar2(interp, "sqlite_options", "lfs", "1", TCL_GLOBAL_ONLY); |
#endif |
+#ifdef SQLITE_DISABLE_PAGECACHE_OVERFLOW_STATS |
+ Tcl_SetVar2(interp, "sqlite_options", "pagecache_overflow_stats","0",TCL_GLOBAL_ONLY); |
+#else |
+ Tcl_SetVar2(interp, "sqlite_options", "pagecache_overflow_stats","1",TCL_GLOBAL_ONLY); |
+#endif |
+ |
#if SQLITE_MAX_MMAP_SIZE>0 |
Tcl_SetVar2(interp, "sqlite_options", "mmap", "1", TCL_GLOBAL_ONLY); |
#else |
@@ -143,6 +160,12 @@ static void set_options(Tcl_Interp *interp){ |
Tcl_SetVar2(interp, "sqlite_options", "mem5", "0", TCL_GLOBAL_ONLY); |
#endif |
+#ifdef SQLITE_ENABLE_PREUPDATE_HOOK |
+ Tcl_SetVar2(interp, "sqlite_options", "preupdate", "1", TCL_GLOBAL_ONLY); |
+#else |
+ Tcl_SetVar2(interp, "sqlite_options", "preupdate", "0", TCL_GLOBAL_ONLY); |
+#endif |
+ |
#ifdef SQLITE_ENABLE_SNAPSHOT |
Tcl_SetVar2(interp, "sqlite_options", "snapshot", "1", TCL_GLOBAL_ONLY); |
#else |
@@ -245,7 +268,7 @@ static void set_options(Tcl_Interp *interp){ |
Tcl_SetVar2(interp, "sqlite_options", "between_opt", "1", TCL_GLOBAL_ONLY); |
#endif |
-#ifdef SQLITE_OMIT_BUILTIN_TEST |
+#ifdef SQLITE_UNTESTABLE |
Tcl_SetVar2(interp, "sqlite_options", "builtin_test", "0", TCL_GLOBAL_ONLY); |
#else |
Tcl_SetVar2(interp, "sqlite_options", "builtin_test", "1", TCL_GLOBAL_ONLY); |
@@ -521,6 +544,12 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY); |
Tcl_SetVar2(interp, "sqlite_options", "schema_version", "1", TCL_GLOBAL_ONLY); |
#endif |
+#ifdef SQLITE_ENABLE_SESSION |
+ Tcl_SetVar2(interp, "sqlite_options", "session", "1", TCL_GLOBAL_ONLY); |
+#else |
+ Tcl_SetVar2(interp, "sqlite_options", "session", "0", TCL_GLOBAL_ONLY); |
+#endif |
+ |
#ifdef SQLITE_ENABLE_STAT4 |
Tcl_SetVar2(interp, "sqlite_options", "stat4", "1", TCL_GLOBAL_ONLY); |
#else |
@@ -576,7 +605,11 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY); |
#endif |
Tcl_SetVar2(interp, "sqlite_options", "threadsafe", |
- STRINGVALUE(SQLITE_THREADSAFE), TCL_GLOBAL_ONLY); |
+ SQLITE_THREADSAFE ? "1" : "0", TCL_GLOBAL_ONLY); |
+ Tcl_SetVar2(interp, "sqlite_options", "threadsafe1", |
+ SQLITE_THREADSAFE==1 ? "1" : "0", TCL_GLOBAL_ONLY); |
+ Tcl_SetVar2(interp, "sqlite_options", "threadsafe2", |
+ SQLITE_THREADSAFE==2 ? "1" : "0", TCL_GLOBAL_ONLY); |
assert( sqlite3_threadsafe()==SQLITE_THREADSAFE ); |
#ifdef SQLITE_OMIT_TEMPDB |
@@ -681,6 +714,12 @@ Tcl_SetVar2(interp, "sqlite_options", "mergesort", "1", TCL_GLOBAL_ONLY); |
Tcl_SetVar2(interp, "sqlite_options", "sqllog", "0", TCL_GLOBAL_ONLY); |
#endif |
+#ifdef SQLITE_ENABLE_URI_00_ERROR |
+ Tcl_SetVar2(interp, "sqlite_options", "uri_00_error", "1", TCL_GLOBAL_ONLY); |
+#else |
+ Tcl_SetVar2(interp, "sqlite_options", "uri_00_error", "0", TCL_GLOBAL_ONLY); |
+#endif |
+ |
#define LINKVAR(x) { \ |
static const int cv_ ## x = SQLITE_ ## x; \ |
Tcl_LinkVar(interp, "SQLITE_" #x, (char *)&(cv_ ## x), \ |