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

Avoid an extra seek when inserting records into the epheremal index used to ensure that rows returned by UNION recursive queries are unique.

FossilOrigin-Name: 72c4b3f07a3faacb5b62d5bc374b4e125a0bd8b3
This commit is contained in:
dan
2014-01-22 19:23:30 +00:00
parent edf83d1e3d
commit cfe24586a8
3 changed files with 9 additions and 8 deletions

View File

@@ -814,6 +814,7 @@ static void selectInnerLoop(
** been added */
addrTest = sqlite3VdbeAddOp4Int(v, OP_Found, iParm+1, 0, r3, 0);
sqlite3VdbeAddOp2(v, OP_IdxInsert, iParm+1, r3);
sqlite3VdbeChangeP5(v, OPFLAG_USESEEKRESULT);
}
for(i=0; i<nKey; i++){
sqlite3VdbeAddOp2(v, OP_SCopy,