diff options
author | drh <> | 2021-12-04 14:24:30 +0000 |
---|---|---|
committer | drh <> | 2021-12-04 14:24:30 +0000 |
commit | 770dade262f88ec531d7708ac2d0f2e7882dcb16 (patch) | |
tree | 16061afed7af688e6e9bcd214259c38221ec5ec9 /src/wherecode.c | |
parent | 19ce9aafdb200670d5ee9c3f1b139801a988f2ba (diff) | |
download | sqlite-770dade262f88ec531d7708ac2d0f2e7882dcb16.tar.gz sqlite-770dade262f88ec531d7708ac2d0f2e7882dcb16.zip |
Apply the Bloom filter only on those terms of an index that have equality
constraints.
FossilOrigin-Name: a70429596a3c6a413b03118b0d800521b3526d99dcf88a48acc3189b51518d82
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 2e616ad59..fbb40ad4e 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -1845,7 +1845,7 @@ Bitmask sqlite3WhereCodeOneLoopStart( } if( pLevel->regFilter ){ sqlite3VdbeAddOp4Int(v, OP_Filter, pLevel->regFilter, addrNxt, - regBase, nConstraint); + regBase, nEq); } op = aStartOp[(start_constraints<<2) + (startEq<<1) + bRev]; |