mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add the SQLITE_LIKE_DOESNT_MATCH_BLOBS compile-time option.
FossilOrigin-Name: 9e1d6d4c391ff90077f0d1cdeb567969fee9f747
This commit is contained in:
@ -62,7 +62,7 @@ ifcapable {bloblit && utf16} {
|
||||
execsql {
|
||||
CREATE TABLE t2(a);
|
||||
INSERT INTO t2 VALUES(x'61006200630064006500');
|
||||
SELECT CAST(a AS text) FROM t2 WHERE a LIKE 'abc%';
|
||||
SELECT CAST(a AS text) FROM t2 WHERE CAST(a AS text) LIKE 'abc%';
|
||||
}
|
||||
} {abcde}
|
||||
do_test enc3-2.3 {
|
||||
@ -72,7 +72,8 @@ ifcapable {bloblit && utf16} {
|
||||
} {abcde}
|
||||
do_test enc3-2.4 {
|
||||
execsql {
|
||||
SELECT rowid FROM t2 WHERE a LIKE x'610062002500';
|
||||
SELECT rowid FROM t2
|
||||
WHERE CAST(a AS text) LIKE CAST(x'610062002500' AS text);
|
||||
}
|
||||
} {1}
|
||||
}
|
||||
|
Reference in New Issue
Block a user