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

Avoid reusing temporary registers in co-routines when doing

block-sorting.

FossilOrigin-Name: 463d921b519b08648a715e987c430f06b06bae84
This commit is contained in:
drh
2014-03-19 15:17:24 +00:00
parent ea6c36e204
commit ba194369ad
3 changed files with 11 additions and 9 deletions

View File

@@ -509,8 +509,10 @@ static void pushOntoSorter(
op = OP_IdxInsert;
}
sqlite3VdbeAddOp2(v, op, pSort->iECursor, regRecord);
sqlite3ReleaseTempReg(pParse, regRecord);
sqlite3ReleaseTempRange(pParse, regBase, nExpr+2);
if( nOBSat==0 ){
sqlite3ReleaseTempReg(pParse, regRecord);
sqlite3ReleaseTempRange(pParse, regBase, nExpr+2);
}
if( pSelect->iLimit ){
int addr1, addr2;
int iLimit;