aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-30 14:06:22 +0000
committerdrh <drh@noemail.net>2015-12-30 14:06:22 +0000
commit31d175dde485bc4b6b573ef8ca8218378468e926 (patch)
tree9fcd29ea0d16abf0d1cdbed4efe695941e74fa45 /src
parentff135ae4c33040e3f5f22b2a1bfe51a06cfa9424 (diff)
downloadsqlite-31d175dde485bc4b6b573ef8ca8218378468e926.tar.gz
sqlite-31d175dde485bc4b6b573ef8ca8218378468e926.zip
Remove unnecessary tests from the LIKE pattern matcher. Slightly faster and
slightly smaller, and it should also now works with EBCDIC. FossilOrigin-Name: 0a99a8c4facf65ec67d8d86108c9a3f723f7cbd6
Diffstat (limited to 'src')
-rw-r--r--src/func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c
index 3fbd2b736..ad4cf73c3 100644
--- a/src/func.c
+++ b/src/func.c
@@ -747,7 +747,7 @@ static int patternCompare(
}
c2 = Utf8Read(zString);
if( c==c2 ) continue;
- if( noCase && c<0x80 && c2<0x80 && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
+ if( noCase && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
continue;
}
if( c==matchOne && zPattern!=zEscaped && c2!=0 ) continue;