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

Set the NULLEQ flag on the sequence counter comparison in the ORDER BY LIMIT

optimization, to avoid coverage complaints about not testing the NULL case.

FossilOrigin-Name: ed1b30dc932a7c03e173b130c5f55f9989c7e0b4
This commit is contained in:
drh
2016-05-20 13:44:58 +00:00
parent 73fa4737ce
commit 6326d9f6f1
3 changed files with 8 additions and 7 deletions

View File

@@ -611,6 +611,7 @@ static void pushOntoSorter(
** LIMIT+OFFSET entries of the sorter. */
int iBrk = sqlite3VdbeCurrentAddr(v) + 2;
sqlite3VdbeAddOp3(v, OP_Eq, regBase+nExpr, iBrk, r1);
sqlite3VdbeChangeP5(v, SQLITE_NULLEQ);
VdbeCoverage(v);
}
sqlite3VdbeJumpHere(v, addr);