diff options
author | dan <dan@noemail.net> | 2019-06-12 13:49:32 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2019-06-12 13:49:32 +0000 |
commit | 6ece353f2d2223ec78e63ce972081a047e89a641 (patch) | |
tree | 0aea1998f1622dfb47218cacd5c081974d82f2d0 /src/treeview.c | |
parent | a7d6db6ac05cb7d51c19494feba51a65c6a21cd2 (diff) | |
download | sqlite-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.c | 2 |
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; |