aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-07-26 04:31:14 +0000
committerdrh <drh@noemail.net>2016-07-26 04:31:14 +0000
commit426f4ab0092550430f76bb73bebc0b9f49c052b3 (patch)
tree8095428841bbc10f6b2c238d92f8c5437f91efa8 /src/wherecode.c
parent2b62b5def80c984918d197631723ea583a215efb (diff)
downloadsqlite-426f4ab0092550430f76bb73bebc0b9f49c052b3.tar.gz
sqlite-426f4ab0092550430f76bb73bebc0b9f49c052b3.zip
Make sure affinity is applied correctly on lower-bound range constraints
in the min() optimization. Fix for ticket [a0bac8b3c3d1bb]. FossilOrigin-Name: b819bace9c2a0b0159122b26db96a8f50a6f0eac
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 0b307761b..d78982f5b 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1319,6 +1319,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
}
nConstraint++;
testcase( pRangeStart->wtFlags & TERM_VIRTUAL );
+ bSeekPastNull = 0;
}else if( bSeekPastNull ){
sqlite3VdbeAddOp2(v, OP_Null, 0, regBase+nEq);
nConstraint++;