mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user