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/expr.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/expr.c')
-rw-r--r-- | src/expr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index 763c7b8ad..e6dc20222 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1813,6 +1813,7 @@ int sqlite3ExprIdToTrueFalse(Expr *pExpr){ ** and 0 if it is FALSE. */ int sqlite3ExprTruthValue(const Expr *pExpr){ + pExpr = sqlite3ExprSkipCollate((Expr*)pExpr); assert( pExpr->op==TK_TRUEFALSE ); assert( sqlite3StrICmp(pExpr->u.zToken,"true")==0 || sqlite3StrICmp(pExpr->u.zToken,"false")==0 ); |