aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-02-11 02:43:14 +0000
committerdrh <drh@noemail.net>2011-02-11 02:43:14 +0000
commit59b6188bb040492924de7f3d0eba91de23e5cac5 (patch)
tree539e3d0f2b36dbed0686775e607b40e35291a540 /src
parent96887e161903625db1b5ab4a26bbfa2cb65a1956 (diff)
downloadsqlite-59b6188bb040492924de7f3d0eba91de23e5cac5.tar.gz
sqlite-59b6188bb040492924de7f3d0eba91de23e5cac5.zip
Disable unused NULL tests when SQLITE_ENABLE_STAT2 is not in use.
FossilOrigin-Name: 5ecd11788269e78dc26639b2503a10b7e25b2483
Diffstat (limited to 'src')
-rw-r--r--src/where.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index 2fc0a80fe..7710225bb 100644
--- a/src/where.c
+++ b/src/where.c
@@ -118,7 +118,11 @@ struct WhereTerm {
#define TERM_ORINFO 0x10 /* Need to free the WhereTerm.u.pOrInfo object */
#define TERM_ANDINFO 0x20 /* Need to free the WhereTerm.u.pAndInfo obj */
#define TERM_OR_OK 0x40 /* Used during OR-clause processing */
-#define TERM_VNULL 0x80 /* Manufactured x>NULL or x<=NULL term */
+#ifdef SQLITE_ENABLE_STAT2
+# define TERM_VNULL 0x80 /* Manufactured x>NULL or x<=NULL term */
+#else
+# define TERM_VNULL 0x00 /* Disabled if not using stat2 */
+#endif
/*
** An instance of the following structure holds all information about a