1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add an ALWAYS() on a branch in the new indexed-subtype logic.

FossilOrigin-Name: f150c3c5b898975b1f83d61fa589753449a48f8a0007e8e167dbd702528197c5
This commit is contained in:
drh
2024-10-08 00:15:22 +00:00
parent ddc764b274
commit 7998b889e8
3 changed files with 8 additions and 8 deletions

View File

@@ -4580,7 +4580,7 @@ static int exprNodeCanReturnSubtype(Walker *pWalker, Expr *pExpr){
}
assert( ExprUseXList(pExpr) );
db = pWalker->pParse->db;
n = pExpr->x.pList ? pExpr->x.pList->nExpr : 0;
n = ALWAYS(pExpr->x.pList) ? pExpr->x.pList->nExpr : 0;
pDef = sqlite3FindFunction(db, pExpr->u.zToken, n, ENC(db), 0);
if( NEVER(pDef==0) || (pDef->funcFlags & SQLITE_RESULT_SUBTYPE)!=0 ){
pWalker->eCode = 1;