/ Check-in [0a99a8c4]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove unnecessary tests from the LIKE pattern matcher. Slightly faster and slightly smaller, and it should also now works with EBCDIC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0a99a8c4facf65ec67d8d86108c9a3f723f7cbd6
User & Date: drh 2015-12-30 14:06:22
References
2016-01-20
14:30
Case folding in the LIKE operator should look at all bits of the character, not just the lower 8 bits. Fix for ticket [80369eddd5c94]. This is a back-out of check-in [0a99a8c4facf] with a testcase added. check-in: 29dc4a3e user: drh tags: branch-3.10
14:22
Case folding in the LIKE operator should look at all bits of the character, not just the lower 8 bits. Fix for ticket [80369eddd5c94]. This is a back-out of check-in [0a99a8c4facf] with a testcase added. check-in: 204432ee user: drh tags: trunk
14:07 New ticket [80369edd] Incorrect case folding in the LIKE operator. artifact: b3016558 user: drh
Context
2016-01-20
14:22
Case folding in the LIKE operator should look at all bits of the character, not just the lower 8 bits. Fix for ticket [80369eddd5c94]. This is a back-out of check-in [0a99a8c4facf] with a testcase added. check-in: 204432ee user: drh tags: trunk
2015-12-30
15:18
Simplification to the xfer-optimization logic. check-in: f35ba018 user: drh tags: trunk
14:06
Remove unnecessary tests from the LIKE pattern matcher. Slightly faster and slightly smaller, and it should also now works with EBCDIC. check-in: 0a99a8c4 user: drh tags: trunk
01:07
Add the json_group_array() and json_group_object() aggregate functions to the JSON1 extension. check-in: 7f386a93 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/func.c.

   743    743             return 0;
   744    744           }
   745    745           continue;
   746    746         }
   747    747       }
   748    748       c2 = Utf8Read(zString);
   749    749       if( c==c2 ) continue;
   750         -    if( noCase && c<0x80 && c2<0x80 && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
          750  +    if( noCase && sqlite3Tolower(c)==sqlite3Tolower(c2) ){
   751    751         continue;
   752    752       }
   753    753       if( c==matchOne && zPattern!=zEscaped && c2!=0 ) continue;
   754    754       return 0;
   755    755     }
   756    756     return *zString==0;
   757    757   }