aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2024-11-28 00:58:37 +0000
committerdrh <>2024-11-28 00:58:37 +0000
commitbfb7f77a8cbad0958abd2e436431d46b345609bb (patch)
tree72af80a083a13536d2a2905d30b5f7e2a1f42adc /src/expr.c
parent60ad5266394ae6b5fe879618eaf81a42df081188 (diff)
downloadsqlite-bfb7f77a8cbad0958abd2e436431d46b345609bb.tar.gz
sqlite-bfb7f77a8cbad0958abd2e436431d46b345609bb.zip
Add two NEVER() conditions.
FossilOrigin-Name: 4f358ad20dc8a45e7aaa1a1996b40abd39caf34be6556ed54e1e0c80572b7ac0
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c
index 68cb60012..6c7a93118 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -6475,9 +6475,9 @@ static int sqlite3ExprIsIIF(sqlite3 *db, const Expr *pExpr){
if( (z[0]!='i' && z[0]!='I') ) return 0;
if( pExpr->x.pList==0 ) return 0;
pDef = sqlite3FindFunction(db, z, pExpr->x.pList->nExpr, ENC(db), 0);
- if( pDef==0 ) return 0;
+ if( NEVER(pDef==0) ) return 0;
if( (pDef->funcFlags & SQLITE_FUNC_INLINE)==0 ) return 0;
- if( SQLITE_PTR_TO_INT(pDef->pUserData)!=INLINEFUNC_iif ) return 0;
+ if( NEVER(SQLITE_PTR_TO_INT(pDef->pUserData)!=INLINEFUNC_iif) ) return 0;
}else if( pExpr->op==TK_CASE ){
if( pExpr->pLeft!=0 ) return 0;
}else{