mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Add NEVER() and ALWAYS() macros on branches that are believed to be
unreachable. FossilOrigin-Name: 3a901e88c87fc76c7fe42e47a976a5706830f0dbd6027605663e4d55f4f33590
This commit is contained in:
@@ -6282,7 +6282,7 @@ static void optimizeAggregateUseOfIndexedExpr(
|
||||
NameContext *pNC /* Name context used to resolve agg-func args */
|
||||
){
|
||||
pAggInfo->nColumn = pAggInfo->nAccumulator;
|
||||
if( pAggInfo->nSortingColumn>0 ){
|
||||
if( ALWAYS(pAggInfo->nSortingColumn>0) ){
|
||||
if( pAggInfo->nColumn==0 ){
|
||||
pAggInfo->nSortingColumn = 0;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user