diff options
author | dan <Dan Kennedy> | 2021-02-26 21:39:34 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2021-02-26 21:39:34 +0000 |
commit | 15de3ce9abaf4ebcc6c556faea743c976c7da8d1 (patch) | |
tree | 8aae2365ee2893c7ded98d3eb422900bbd1a9307 /src | |
parent | eca6d60bfa384fbb65ae1261d55c0ba35b557f90 (diff) | |
download | sqlite-15de3ce9abaf4ebcc6c556faea743c976c7da8d1.tar.gz sqlite-15de3ce9abaf4ebcc6c556faea743c976c7da8d1.zip |
Fix a segfault that could occur when optimizing a NOT NULL constraint against an IPK column of a sub-query.
FossilOrigin-Name: e4d1970ef17b2330f78c750d71d625c2997f79ed1445d0351ec32b482485a954
Diffstat (limited to 'src')
-rw-r--r-- | src/whereexpr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/whereexpr.c b/src/whereexpr.c index f547db4f0..30bf2a333 100644 --- a/src/whereexpr.c +++ b/src/whereexpr.c @@ -1409,6 +1409,7 @@ static void exprAnalyze( pNew->eOperator = (operatorMask(pDup->op) + eExtraOp) & opMask; }else if( op==TK_ISNULL && 0==sqlite3ExprCanBeNull(pLeft) ){ pExpr->op = TK_TRUEFALSE; + pExpr->u.zToken = "false"; ExprSetProperty(pExpr, EP_IsFalse); pTerm->prereqAll = 0; pTerm->eOperator = 0; |