diff options
author | drh <> | 2023-05-17 00:26:50 +0000 |
---|---|---|
committer | drh <> | 2023-05-17 00:26:50 +0000 |
commit | 010bd47b9879aa563d04827497c3a0cd91c19f7d (patch) | |
tree | 6004a030d77af01522672e59db48da6c0b98db54 /src/expr.c | |
parent | ea1b2fa03452589806e8c9547b7a5ca1d8d5f515 (diff) | |
download | sqlite-010bd47b9879aa563d04827497c3a0cd91c19f7d.tar.gz sqlite-010bd47b9879aa563d04827497c3a0cd91c19f7d.zip |
Fix two assert() statements that failed to take into account
the likely() built-in function. This does not impact production code.
FossilOrigin-Name: 8504fe812c5b4956c8acad515d537add54cb591bc81747113f9b24526d7685b8
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 a81b4595b..c6bc847ab 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2191,7 +2191,7 @@ int sqlite3ExprIdToTrueFalse(Expr *pExpr){ ** and 0 if it is FALSE. */ int sqlite3ExprTruthValue(const Expr *pExpr){ - pExpr = sqlite3ExprSkipCollate((Expr*)pExpr); + pExpr = sqlite3ExprSkipCollateAndLikely((Expr*)pExpr); assert( pExpr->op==TK_TRUEFALSE ); assert( !ExprHasProperty(pExpr, EP_IntValue) ); assert( sqlite3StrICmp(pExpr->u.zToken,"true")==0 |