diff options
author | drh <> | 2022-11-24 23:35:27 +0000 |
---|---|---|
committer | drh <> | 2022-11-24 23:35:27 +0000 |
commit | 8683c0928111707903654278e6c87634cbee5d8c (patch) | |
tree | ff946d6f42bfe791235af605654641ca97dc85d4 /src | |
parent | e644f7c24bd97b24a0c1be9a82b11c13a316fafd (diff) | |
download | sqlite-8683c0928111707903654278e6c87634cbee5d8c.tar.gz sqlite-8683c0928111707903654278e6c87634cbee5d8c.zip |
Correctly deal with IF-NULL-ROW operators when dealing with
indexed expressions in aggregates.
FossilOrigin-Name: 939cb47025354e2df047de7654c0b06f791957cfe4e904abe8892207cea90215
Diffstat (limited to 'src')
-rw-r--r-- | src/select.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/select.c b/src/select.c index e9b629671..2e6ad4561 100644 --- a/src/select.c +++ b/src/select.c @@ -6318,6 +6318,7 @@ static int aggregateIdxEprRefToColCallback(Walker *pWalker, Expr *pExpr){ if( pExpr->pAggInfo==0 ) return WRC_Continue; if( pExpr->op==TK_AGG_COLUMN ) return WRC_Continue; if( pExpr->op==TK_AGG_FUNCTION ) return WRC_Continue; + if( pExpr->op==TK_IF_NULL_ROW ) return WRC_Continue; pAggInfo = pExpr->pAggInfo; assert( pExpr->iAgg>=0 && pExpr->iAgg<pAggInfo->nColumn ); pCol = &pAggInfo->aCol[pExpr->iAgg]; |