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/sqliteInt.h | |
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/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 8 |
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 |