diff options
author | drh <drh@noemail.net> | 2019-09-21 17:31:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-09-21 17:31:03 +0000 |
commit | e39f388eb1b66df91a59038abaa6566306f1cbb7 (patch) | |
tree | 6cd6b728fdba4aac186b57de0291723ff7bf4dfa /src/select.c | |
parent | 8c9bcb2328b6c2fdd41520911bf67e0cb199f995 (diff) | |
download | sqlite-e39f388eb1b66df91a59038abaa6566306f1cbb7.tar.gz sqlite-e39f388eb1b66df91a59038abaa6566306f1cbb7.zip |
Fix harmless compiler warnings.
FossilOrigin-Name: 8ea1dc727d391b15d0c4fa858ff68d5b8a63dde46408f24027dac8d28f044cbd
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/select.c b/src/select.c index 0eded752b..f28bdf937 100644 --- a/src/select.c +++ b/src/select.c @@ -6233,15 +6233,15 @@ int sqlite3Select( ** ORDER BY and GROUP BY clauses are the same by setting the orderByGrp ** variable. */ if( sSort.pOrderBy && pGroupBy->nExpr==sSort.pOrderBy->nExpr ){ - int i; + int ii; /* The GROUP BY processing doesn't care whether rows are delivered in ** ASC or DESC order - only that each group is returned contiguously. ** So set the ASC/DESC flags in the GROUP BY to match those in the ** ORDER BY to maximize the chances of rows being delivered in an ** order that makes the ORDER BY redundant. */ - for(i=0; i<pGroupBy->nExpr; i++){ - u8 sortFlags = sSort.pOrderBy->a[i].sortFlags & KEYINFO_ORDER_DESC; - pGroupBy->a[i].sortFlags = sortFlags; + for(ii=0; ii<pGroupBy->nExpr; ii++){ + u8 sortFlags = sSort.pOrderBy->a[ii].sortFlags & KEYINFO_ORDER_DESC; + pGroupBy->a[ii].sortFlags = sortFlags; } if( sqlite3ExprListCompare(pGroupBy, sSort.pOrderBy, -1)==0 ){ orderByGrp = 1; |