aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-11-26 20:12:02 +0000
committerdrh <>2022-11-26 20:12:02 +0000
commit743c9ec4a5f3f00a85ad99c582b012c189a0d34f (patch)
tree9ad928894489976e8dd0df7c454dac62a97cf204 /src
parent4245667e3562bee7c3c4fd68ddc2f7c1589d42c0 (diff)
downloadsqlite-743c9ec4a5f3f00a85ad99c582b012c189a0d34f.tar.gz
sqlite-743c9ec4a5f3f00a85ad99c582b012c189a0d34f.zip
Fix an incorrect assertion-fault in the "TREETRACE" debugging logic on
select.c. The problem does not affect production builds. FossilOrigin-Name: f11bb42292d94e7b7687bd2134f72afe1353182238cb4837fc0a6d78a021dd7e
Diffstat (limited to 'src')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 2bedfb9da..10498310d 100644
--- a/src/select.c
+++ b/src/select.c
@@ -6259,7 +6259,7 @@ static void printAggInfo(AggInfo *pAggInfo){
"agg-column[%d] pTab=%s iTable=%d iColumn=%d iMem=%d"
" iSorterColumn=%d %s\n",
ii, pCol->pTab ? pCol->pTab->zName : "NULL",
- pCol->iTable, pCol->iColumn, AggInfoColumnReg(pAggInfo,ii),
+ pCol->iTable, pCol->iColumn, pAggInfo->iFirstReg+ii,
pCol->iSorterColumn,
ii>=pAggInfo->nAccumulator ? "" : " Accumulator");
sqlite3TreeViewExpr(0, pAggInfo->aCol[ii].pCExpr, 0);