1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Make sure IF_NULL_ROW expressions receive a separate slot in the sorter used

to implement GROUP BY.

FossilOrigin-Name: 2bda4fca06ab6be5ad02377a7d1fd9fb9586e3181f1052e4b4937958bdd45efe
This commit is contained in:
drh
2022-07-26 15:32:02 +00:00
parent f4c291275b
commit 4b1b65ca2e
4 changed files with 19 additions and 17 deletions

View File

@@ -3798,6 +3798,7 @@ static Expr *substExpr(
ifNullRow.op = TK_IF_NULL_ROW;
ifNullRow.pLeft = pCopy;
ifNullRow.iTable = pSubst->iNewTable;
ifNullRow.iColumn = -99;
ifNullRow.flags = EP_IfNullRow;
pCopy = &ifNullRow;
}