aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-10-09 11:52:29 +0000
committerdrh <>2024-10-09 11:52:29 +0000
commit4b0a2e01068e14b6cd78a582c41d2b203c421d22 (patch)
tree2cf6512abbd510259ff30a3a46fdb79b5d5b948f /src
parent48d11044ba27cae4144b96adccc9075223dfd47f (diff)
downloadsqlite-4b0a2e01068e14b6cd78a582c41d2b203c421d22.tar.gz
sqlite-4b0a2e01068e14b6cd78a582c41d2b203c421d22.zip
Improved handling of unicode characters in the LIKE optimization.
Follow-up to [bce52ce2a6e7f3d3]. FossilOrigin-Name: 9d0eb3980409115f2f6fd1720a03f34e3968c93be55feafdfef20bf5f711c17f
Diffstat (limited to 'src')
-rw-r--r--src/whereexpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/whereexpr.c b/src/whereexpr.c
index 24d203046..2b6eb6a78 100644
--- a/src/whereexpr.c
+++ b/src/whereexpr.c
@@ -228,7 +228,7 @@ static int isLikeOrGlob(
cnt = 0;
while( (c=z[cnt])!=0 && c!=wc[0] && c!=wc[1] && c!=wc[2] ){
cnt++;
- if( c==wc[3] && z[cnt]!=0 ){
+ if( c==wc[3] && z[cnt]>0 && z[cnt]<0x80 ){
cnt++;
}else if( c>=0x80 ){
const u8 *z2 = z+cnt-1;