aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <dan@noemail.net>2015-11-12 20:12:51 +0000
committerdan <dan@noemail.net>2015-11-12 20:12:51 +0000
commitd83f7ca1140e152f9bfa4ad2e07d78c167a5d203 (patch)
tree6adc82a760359ffa7e178179ed243f86ebbc259f /src/sqliteInt.h
parentc2e0dd4ddd81abbbb25200495df450afa794b9b6 (diff)
downloadsqlite-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/sqliteInt.h')
-rw-r--r--src/sqliteInt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index c65e0f205..fdd82f991 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -527,6 +527,14 @@
# define SQLITE_DEFAULT_PCACHE_INITSZ 100
#endif
+/*
+** If SQLITE_INIT_SQLLOG is defined, then SQLITE_ENABLE_SQLLOG is
+** automatically defined as well.
+*/
+#if defined(SQLITE_INIT_SQLLOG) && !defined(SQLITE_ENABLE_SQLLOG)
+# define SQLITE_ENABLE_SQLLOG 1
+#endif
+
/*
** GCC does not define the offsetof() macro so we'll have to do it