aboutsummaryrefslogtreecommitdiff
path: root/src/whereInt.h
diff options
context:
space:
mode:
authordrh <>2022-02-04 13:05:29 +0000
committerdrh <>2022-02-04 13:05:29 +0000
commit02e3e041343e6ac950771bb5ef813f1876f5036b (patch)
tree3cdfecba52004f51df6e964cf135252142ce9079 /src/whereInt.h
parent7f1c11194825583ffee08ef1a57e6e0d0082c33b (diff)
downloadsqlite-02e3e041343e6ac950771bb5ef813f1876f5036b.tar.gz
sqlite-02e3e041343e6ac950771bb5ef813f1876f5036b.zip
For the MULTI-INDEX-OR optimization, when pushing down WHERE clause terms from
the main query into the various OR-term subqueries, do not push down slices of a vector comparison, since the right-hand operand of the comparison might have only been initialized in a different OR branch that was not taken. dbsqlfuzz 80a9fade844b4fb43564efc972bcb2c68270f5d1. FossilOrigin-Name: 9f67ad00cd38b7c5ec6d14b379e1a611777bbdf6901d843a80712ba7d94d6d33
Diffstat (limited to 'src/whereInt.h')
-rw-r--r--src/whereInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/whereInt.h b/src/whereInt.h
index fc3740f51..8cd414487 100644
--- a/src/whereInt.h
+++ b/src/whereInt.h
@@ -285,6 +285,7 @@ struct WhereTerm {
#else
# define TERM_HIGHTRUTH 0 /* Only used with STAT4 */
#endif
+#define TERM_SLICE 0x8000 /* One slice of a row-value/vector comparison */
/*
** An instance of the WhereScan object is used as an iterator for locating