diff options
author | drh <> | 2022-11-24 18:45:56 +0000 |
---|---|---|
committer | drh <> | 2022-11-24 18:45:56 +0000 |
commit | 594357f2e100fb0b504a9fc1625d8f739c75b1d4 (patch) | |
tree | 69aa1ef512bd10c16a0bd783f626a2d93ffd0fa1 /src/expr.c | |
parent | c25f5ea6e838dabbd0721947a432c4d9717bda74 (diff) | |
download | sqlite-594357f2e100fb0b504a9fc1625d8f739c75b1d4.tar.gz sqlite-594357f2e100fb0b504a9fc1625d8f739c75b1d4.zip |
Change a NEVER() into an assert().
FossilOrigin-Name: a0fd44f4e5a0ec83465203a0009f307ca50223833575895a3ebf8a289515714f
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/expr.c b/src/expr.c index dc918e0bd..f5587395a 100644 --- a/src/expr.c +++ b/src/expr.c @@ -6330,15 +6330,12 @@ static int analyzeAggregate(Walker *pWalker, Expr *pExpr){ default: { IndexedExpr *pIEpr; Expr tmp; + assert( pParse->iSelfTab==0 ); if( (pNC->ncFlags & NC_InAggFunc)==0 ) break; if( pParse->pIdxEpr==0 ) break; for(pIEpr=pParse->pIdxEpr; pIEpr; pIEpr=pIEpr->pIENext){ int iDataCur = pIEpr->iDataCur; if( iDataCur<0 ) continue; - if( NEVER(pParse->iSelfTab) ){ - if( pIEpr->iDataCur!=pParse->iSelfTab-1 ) continue; - iDataCur = -1; - } if( sqlite3ExprCompare(0, pExpr, pIEpr->pExpr, iDataCur)==0 ) break; } if( pIEpr==0 ) break; |