1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-26 09:41:10 +03:00

Make sure affinity is applied correctly on lower-bound range constraints

in the min() optimization.  Fix for ticket [a0bac8b3c3d1bb].

FossilOrigin-Name: b819bace9c2a0b0159122b26db96a8f50a6f0eac
This commit is contained in:
drh
2016-07-26 04:31:14 +00:00
parent 2b62b5def8
commit 426f4ab009
4 changed files with 24 additions and 8 deletions

View File

@ -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++;