aboutsummaryrefslogtreecommitdiff
path: root/src/whereexpr.c
diff options
context:
space:
mode:
authordrh <>2023-05-04 11:29:15 +0000
committerdrh <>2023-05-04 11:29:15 +0000
commitc1e40a3a0299069425342163563f1baba863c44a (patch)
treed51d432907b509012f622ec8595f72dfcad9183e /src/whereexpr.c
parent62b28db5c7fda019639822182bb690d8107e082a (diff)
downloadsqlite-c1e40a3a0299069425342163563f1baba863c44a.tar.gz
sqlite-c1e40a3a0299069425342163563f1baba863c44a.zip
Fix a bug in cursor hints that can cause references to tables that have not
been opened. Cursor hints are intended for use by COMDB2 only and should not appear in production builds, so this should not be a factor for the vast majority of users. FossilOrigin-Name: d3370d59cffb7ab982d6c620c93d22aa6a9dc786e1c4af95ca8d45ff0b9b7d6f
Diffstat (limited to 'src/whereexpr.c')
-rw-r--r--src/whereexpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/whereexpr.c b/src/whereexpr.c
index d02c8ccfc..a979b6f2b 100644
--- a/src/whereexpr.c
+++ b/src/whereexpr.c
@@ -1211,7 +1211,7 @@ static void exprAnalyze(
&& 0==sqlite3ExprCanBeNull(pLeft)
){
assert( !ExprHasProperty(pExpr, EP_IntValue) );
- pExpr->op = TK_TRUEFALSE;
+ pExpr->op = TK_TRUEFALSE; /* See tag-20230504-1 */
pExpr->u.zToken = "false";
ExprSetProperty(pExpr, EP_IsFalse);
pTerm->prereqAll = 0;