aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordrh <>2023-05-17 00:26:50 +0000
committerdrh <>2023-05-17 00:26:50 +0000
commit010bd47b9879aa563d04827497c3a0cd91c19f7d (patch)
tree6004a030d77af01522672e59db48da6c0b98db54 /src/treeview.c
parentea1b2fa03452589806e8c9547b7a5ca1d8d5f515 (diff)
downloadsqlite-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/treeview.c')
-rw-r--r--src/treeview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c
index 9f630b156..d55adab38 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -643,7 +643,8 @@ void sqlite3TreeViewExpr(TreeView *pView, const Expr *pExpr, u8 moreToFollow){
};
assert( pExpr->op2==TK_IS || pExpr->op2==TK_ISNOT );
assert( pExpr->pRight );
- assert( sqlite3ExprSkipCollate(pExpr->pRight)->op==TK_TRUEFALSE );
+ assert( sqlite3ExprSkipCollateAndLikely(pExpr->pRight)->op
+ == TK_TRUEFALSE );
x = (pExpr->op2==TK_ISNOT)*2 + sqlite3ExprTruthValue(pExpr->pRight);
zUniOp = azOp[x];
break;