Add the OP_SetTabCol and OP_VerifyTabCol opcodes, only when compiling with

SQLITE_DEBUG, to do run-time verification of the column cache.

FossilOrigin-Name: b37614a3670770919a7c7f8157c5fd6578d736447998640b52e5cef8174cadc2
This commit is contained in:
drh
2018-06-11 17:35:02 +00:00
parent 8d7b212c4c
commit 299bf7c2f0
10 changed files with 123 additions and 18 deletions
+11
View File
@@ -367,6 +367,17 @@
# undef NDEBUG
#endif
/* SQLITE_DEBUG_COLUMNCACHE is synomous with SQLITE_DEBUG. The
** SQLITE_DEBUG_COLUMNCACHE symbol only exists to provide a convenient
** way to search for all code that deals with verifying correct behavior
** of the column cache.
*/
#ifdef SQLITE_DEBUG
# define SQLITE_DEBUG_COLUMNCACHE 1
#else
# undef SQLIT_DEBUG_COLUMNCACHE
#endif
/*
** Enable SQLITE_ENABLE_EXPLAIN_COMMENTS if SQLITE_DEBUG is turned on.
*/