aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <>2022-11-24 15:04:23 +0000
committerdrh <>2022-11-24 15:04:23 +0000
commitc25f5ea6e838dabbd0721947a432c4d9717bda74 (patch)
treeb22c97994d6cfdfb7b67486becf400af719f30ab /src/select.c
parentb669bb5e2bd130b2a8d8a87304449cfb3b27f9d9 (diff)
downloadsqlite-c25f5ea6e838dabbd0721947a432c4d9717bda74.tar.gz
sqlite-c25f5ea6e838dabbd0721947a432c4d9717bda74.zip
Add NEVER() and ALWAYS() macros on branches that are believed to be
unreachable. FossilOrigin-Name: 3a901e88c87fc76c7fe42e47a976a5706830f0dbd6027605663e4d55f4f33590
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index dcf899e4b..e9b629671 100644
--- a/src/select.c
+++ b/src/select.c
@@ -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{