diff options
author | dan <dan@noemail.net> | 2015-11-12 20:12:51 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-11-12 20:12:51 +0000 |
commit | d83f7ca1140e152f9bfa4ad2e07d78c167a5d203 (patch) | |
tree | 6adc82a760359ffa7e178179ed243f86ebbc259f /src/test_config.c | |
parent | c2e0dd4ddd81abbbb25200495df450afa794b9b6 (diff) | |
download | sqlite-d83f7ca1140e152f9bfa4ad2e07d78c167a5d203.tar.gz sqlite-d83f7ca1140e152f9bfa4ad2e07d78c167a5d203.zip |
Add support for the SQLITE_SQLLOG_CONDITIONAL environment variable to the logging code in test_sqllog.c. When defined, logging is only performed if the "<database>-sqllog" file is present in the file system when the main database is opened.
FossilOrigin-Name: cab8126be9f63dd596719b12704ba77c128282bc
Diffstat (limited to 'src/test_config.c')
-rw-r--r-- | src/test_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test_config.c b/src/test_config.c index be43f87e7..4cb5c0057 100644 --- a/src/test_config.c +++ b/src/test_config.c @@ -657,6 +657,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), \ |