diff options
author | drh <drh@noemail.net> | 2019-08-23 17:09:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-08-23 17:09:02 +0000 |
commit | a31d3554c5daaff3c9e8d411879c6185b75073a0 (patch) | |
tree | 6d15421911d01f5b68808fd8e23dcfb3d77bac80 /src/wherecode.c | |
parent | 5f6a4ea2e2b5a12bc425615a8a01af920c1bc65d (diff) | |
download | sqlite-a31d3554c5daaff3c9e8d411879c6185b75073a0.tar.gz sqlite-a31d3554c5daaff3c9e8d411879c6185b75073a0.zip |
Revise the VDBE comments for NULL-scan so that they also work make
sense when reading a NULLS FIRST plan.
FossilOrigin-Name: bfe793780fa6fc7a1e7d0ee60606dda272985de9573887dca118e9510fc609f2
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 9868428c5..2fbcba17e 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -1691,7 +1691,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( } if( regBignull ){ sqlite3VdbeAddOp2(v, OP_Integer, 1, regBignull); - VdbeComment((v, "NULL-scan needed flag")); + VdbeComment((v, "NULL-scan pass ctr")); } op = aStartOp[(start_constraints<<2) + (startEq<<1) + bRev]; @@ -1769,7 +1769,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( if( regBignull ){ /* Except, skip the end-of-range check while doing the NULL-scan */ sqlite3VdbeAddOp2(v, OP_IfNot, regBignull, sqlite3VdbeCurrentAddr(v)+3); - VdbeComment((v, "If NULL-scan active")); + VdbeComment((v, "If NULL-scan 2nd pass")); VdbeCoverage(v); } op = aEndOp[bRev*2 + endEq]; @@ -1786,7 +1786,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( assert( bSeekPastNull+bStopAtNull==1 ); assert( nConstraint+bSeekPastNull>0 ); sqlite3VdbeAddOp2(v, OP_If, regBignull, sqlite3VdbeCurrentAddr(v)+2); - VdbeComment((v, "If NULL-scan pending")); + VdbeComment((v, "If NULL-scan 1st pass")); VdbeCoverage(v); op = aEndOp[bRev*2 + bSeekPastNull]; sqlite3VdbeAddOp4Int(v, op, iIdxCur, addrNxt, regBase, |