Better solution to the LIKE problem from the previous check-in that works
even if the SQLITE_LIKE_DOESNT_MATCH_BLOBS compile-time option is used. FossilOrigin-Name: b850dd159918af568c55c00ff146ba9c9c04d33ff384fe1eb0ad74164bc401bb
This commit is contained in:
parent
1f0ecc79b0
commit
4de3353d4a
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
||||
C Fix\sa\slogic\serror\sdiscovered\sby\sOSSFuzz.
|
||||
D 2018-03-31T23:28:55.602
|
||||
C Better\ssolution\sto\sthe\sLIKE\sproblem\sfrom\sthe\sprevious\scheck-in\sthat\sworks\neven\sif\sthe\sSQLITE_LIKE_DOESNT_MATCH_BLOBS\scompile-time\soption\sis\sused.
|
||||
D 2018-04-02T00:16:36.624
|
||||
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
||||
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
||||
F Makefile.in 7016fc56c6b9bfe5daac4f34be8be38d8c0b5fab79ccbfb764d3b23bf1c6fff3
|
||||
@ -576,7 +576,7 @@ F src/wal.h 8de5d2d3de0956d6f6cb48c83a4012d5f227b8fe940f3a349a4b7e85ebcb492a
|
||||
F src/walker.c da987a20d40145c0a03c07d8fefcb2ed363becc7680d0500d9c79915591f5b1f
|
||||
F src/where.c 7cae47e813393d70c6d327fdf000fcb30f76b1b0b5a5b52ff6402e0c658de32c
|
||||
F src/whereInt.h 82c04c5075308abbac59180c8bad5ecb45b07453981f60a53f3c7dee21e1e971
|
||||
F src/wherecode.c e75c351bb4a2b2ef9dc03e4758fc3282e65cabf7ad7fbd9d170136c50fa97b48
|
||||
F src/wherecode.c 982b7450c53fb272f61a1d20c93e960260ea4dfe8e2e9bacc190e2a041a1f1a4
|
||||
F src/whereexpr.c 53532be687e12f3cd314f1e204cd4fbdac7ad250e918a182b048121e16e828ae
|
||||
F test/8_3_names.test ebbb5cd36741350040fd28b432ceadf495be25b2
|
||||
F test/affinity2.test a6d901b436328bd67a79b41bb0ac2663918fe3bd
|
||||
@ -1717,7 +1717,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||
P 823779d31eb09cda5effe747d9adb35e600a52d4274226586437f674e7824d91
|
||||
R 729c06f2ccb0b2877746921649749e7f
|
||||
P fc06ddd458fc1028b33b3927cc3b113b7106caa67136993de2e57926a8a19623
|
||||
R 7b7a30931830e96714db59b77704b857
|
||||
U drh
|
||||
Z 43a1f355cf5a93ba205c5e2d257a2751
|
||||
Z 4d51a8db2ce4cd583168b066b4500b79
|
||||
|
@ -1 +1 @@
|
||||
fc06ddd458fc1028b33b3927cc3b113b7106caa67136993de2e57926a8a19623
|
||||
b850dd159918af568c55c00ff146ba9c9c04d33ff384fe1eb0ad74164bc401bb
|
@ -2127,7 +2127,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
|
||||
continue;
|
||||
}
|
||||
|
||||
if( (pTerm->wtFlags & TERM_LIKECOND)!=0 && pLevel->iLikeRepCntr ){
|
||||
if( (pTerm->wtFlags & TERM_LIKECOND)!=0 ){
|
||||
/* If the TERM_LIKECOND flag is set, that means that the range search
|
||||
** is sufficient to guarantee that the LIKE operator is true, so we
|
||||
** can skip the call to the like(A,B) function. But this only works
|
||||
@ -2137,8 +2137,9 @@ Bitmask sqlite3WhereCodeOneLoopStart(
|
||||
continue;
|
||||
#else
|
||||
u32 x = pLevel->iLikeRepCntr;
|
||||
assert( x>0 );
|
||||
skipLikeAddr = sqlite3VdbeAddOp1(v, (x&1)?OP_IfNot:OP_If, (int)(x>>1));
|
||||
if( x>0 ){
|
||||
skipLikeAddr = sqlite3VdbeAddOp1(v, (x&1)?OP_IfNot:OP_If,(int)(x>>1));
|
||||
}
|
||||
VdbeCoverage(v);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user