aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2019-06-12 13:49:32 +0000
committerdan <dan@noemail.net>2019-06-12 13:49:32 +0000
commit6ece353f2d2223ec78e63ce972081a047e89a641 (patch)
tree0aea1998f1622dfb47218cacd5c081974d82f2d0 /src/treeview.c
parenta7d6db6ac05cb7d51c19494feba51a65c6a21cd2 (diff)
downloadsqlite-6ece353f2d2223ec78e63ce972081a047e89a641.tar.gz
sqlite-6ece353f2d2223ec78e63ce972081a047e89a641.zip
Handle expressions like "expr IS TRUE COLLATE xyz" in the same way as "expr IS TRUE". Fix for [4d01eda8115b10d1].
FossilOrigin-Name: 5c6146b56a75a94f4baa10e95407c54dd0b9314a57a8702a4b96b15c4d7ac48c
Diffstat (limited to 'src/treeview.c')
-rw-r--r--src/treeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c
index 981ae2f69..6b4a98e3a 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -514,7 +514,7 @@ void sqlite3TreeViewExpr(TreeView *pView, const Expr *pExpr, u8 moreToFollow){
};
assert( pExpr->op2==TK_IS || pExpr->op2==TK_ISNOT );
assert( pExpr->pRight );
- assert( pExpr->pRight->op==TK_TRUEFALSE );
+ assert( sqlite3ExprSkipCollate(pExpr->pRight)->op==TK_TRUEFALSE );
x = (pExpr->op2==TK_ISNOT)*2 + sqlite3ExprTruthValue(pExpr->pRight);
zUniOp = azOp[x];
break;