diff options
author | monty@mysql.com <> | 2004-02-11 00:06:46 +0100 |
---|---|---|
committer | monty@mysql.com <> | 2004-02-11 00:06:46 +0100 |
commit | ce145789092b294a562f565671478ae2bf51d14a (patch) | |
tree | 927515d304bd661aebdb0e534418caf49d322ada /mysql-test/t/func_like.test | |
parent | 0c6a0b9a3118948efeedefd036d2994982babd08 (diff) | |
parent | efb134f3a874befe4ab1779f597ada09f57ca191 (diff) | |
download | mariadb-git-ce145789092b294a562f565671478ae2bf51d14a.tar.gz |
Merge with 4.0.18
Diffstat (limited to 'mysql-test/t/func_like.test')
-rw-r--r-- | mysql-test/t/func_like.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/func_like.test b/mysql-test/t/func_like.test index a05a2a3bdaa..8b719b077f2 100644 --- a/mysql-test/t/func_like.test +++ b/mysql-test/t/func_like.test @@ -25,6 +25,16 @@ 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 '#'; +select * from t1 where a like 'a\\%' escape '#' and a like 'a\\\\b'; +drop table t1; + # # Test like with non-default character set |