diff options
author | drh <> | 2024-03-16 19:48:51 +0000 |
---|---|---|
committer | drh <> | 2024-03-16 19:48:51 +0000 |
commit | 4713b2d73ca0053671c7b6e8502647e1a2c0a411 (patch) | |
tree | 639ec1a03b200968c56df889d9d90fde4ce4c788 /src/expr.c | |
parent | b918a0f8215b43d62e2824dbe439261cafaf48c2 (diff) | |
download | sqlite-4713b2d73ca0053671c7b6e8502647e1a2c0a411.tar.gz sqlite-4713b2d73ca0053671c7b6e8502647e1a2c0a411.zip |
Assert that the eCode is always non-zero upon entry into exprNodeIsConstant().
FossilOrigin-Name: f71b28f6713126745bca53e098dfe3444d4235d6a2b87ced5b333a7f0ee79be8
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 95567de79..66070db5b 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2372,7 +2372,6 @@ static SQLITE_NOINLINE int exprNodeIsConstantFunction( sqlite3 *db; /* The database */ assert( pExpr->op==TK_FUNCTION ); - if( pWalker->eCode==0 ) return WRC_Abort; pList = pExpr->x.pList; if( pList==0 ){ n = 0; @@ -2421,6 +2420,7 @@ static SQLITE_NOINLINE int exprNodeIsConstantFunction( ** malformed schema error. */ static int exprNodeIsConstant(Walker *pWalker, Expr *pExpr){ + assert( pWalker->eCode>0 ); /* If pWalker->eCode is 2 then any term of the expression that comes from ** the ON or USING clauses of an outer join disqualifies the expression |