1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for the bug #2231: string column, INDEX+LIKE, don't take the ESCAPE character.

(acctually i don't like the fix, any suggestions?)
This commit is contained in:
ram@gw.mysql.r18.ru
2003-12-30 19:23:38 +04:00
parent ac3ddc8d6c
commit e49c7ae45f
4 changed files with 26 additions and 9 deletions

View File

@ -37,3 +37,9 @@ select * from t1 where a like "%abc\d%";
a
abcd
drop table t1;
create table t1 (a varchar(10), key(a));
insert into t1 values ('a'), ('a\\b');
select * from t1 where a like 'a\\%' escape '#';
a
a\b
drop table t1;

View File

@ -21,3 +21,12 @@ select * from t1 where a like "%abcd%";
select * from t1 where a like "%abc\d%";
drop table t1;
#
# Bug #2231
#
create table t1 (a varchar(10), key(a));
insert into t1 values ('a'), ('a\\b');
select * from t1 where a like 'a\\%' escape '#';
drop table t1;