aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-08-24 15:37:31 +0000
committerdrh <drh@noemail.net>2016-08-24 15:37:31 +0000
commitd0b67a8654809493d07bff62e2d9ce480be7b4df (patch)
treee4b7a40d41733a404c8ae422e769218dff64c131 /src/expr.c
parent7887d7f24d176b75a77dd8a86abcdbb70a83b957 (diff)
downloadsqlite-d0b67a8654809493d07bff62e2d9ce480be7b4df.tar.gz
sqlite-d0b67a8654809493d07bff62e2d9ce480be7b4df.zip
Add a NEVER() on an unreachable branch in comparisonAffinity().
FossilOrigin-Name: 505a2f20eac62d4e170f003255c8984e4f3b0918
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 572edaa54..37f778b29 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -221,7 +221,7 @@ static char comparisonAffinity(Expr *pExpr){
aff = sqlite3CompareAffinity(pExpr->pRight, aff);
}else if( ExprHasProperty(pExpr, EP_xIsSelect) ){
aff = sqlite3CompareAffinity(pExpr->x.pSelect->pEList->a[0].pExpr, aff);
- }else if( !aff ){
+ }else if( NEVER(aff==0) ){
aff = SQLITE_AFF_BLOB;
}
return aff;