aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-09-29 20:22:19 +0000
committerdrh <drh@noemail.net>2020-09-29 20:22:19 +0000
commit0b2949c36ec15d1f340e59345e236129397b4595 (patch)
tree6a478c16e380eeddd6908354dae9d84b194ee1be /src/wherecode.c
parentdfbaae7572b76e48eab50819aafb13b0cef8a98b (diff)
downloadsqlite-0b2949c36ec15d1f340e59345e236129397b4595.tar.gz
sqlite-0b2949c36ec15d1f340e59345e236129397b4595.zip
Coverage testing of the OP_SeekScan opcode. Fix a problem that comes up when
OP_SeekScan reaches the end of the table. FossilOrigin-Name: 9e57e758a6a33f54d28a546b4eebfb5cfacef30dc4e0207e43bb9d2c06fc3439
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 4e10c79d8..9dbc1d4b0 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1807,7 +1807,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
if( (pLoop->wsFlags & WHERE_IN_SEEKSCAN)!=0 ){
assert( op==OP_SeekGE );
assert( regBignull==0 );
- sqlite3VdbeAddOp1(v, OP_SeekScan, 10);
+ sqlite3VdbeAddOp1(v, OP_SeekScan, 10); VdbeCoverage(v);
}
sqlite3VdbeAddOp4Int(v, op, iIdxCur, addrNxt, regBase, nConstraint);
VdbeCoverage(v);