summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_like.test
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-03-11 18:21:57 +0400
committerram@gw.mysql.r18.ru <>2004-03-11 18:21:57 +0400
commit0aab3a9ebab7a6835117c5dab5623ec9d58ce648 (patch)
tree7b51b0bc72f1abe7318456491246125ea2b4cc4b /mysql-test/t/func_like.test
parent082a01d1e05086fdcdb38c50799106489c92d1fa (diff)
downloadmariadb-git-0aab3a9ebab7a6835117c5dab5623ec9d58ce648.tar.gz
a fix (bug #2885: like datetime)
Diffstat (limited to 'mysql-test/t/func_like.test')
-rw-r--r--mysql-test/t/func_like.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/func_like.test b/mysql-test/t/func_like.test
index 8b719b077f2..91f55af48cc 100644
--- a/mysql-test/t/func_like.test
+++ b/mysql-test/t/func_like.test
@@ -35,6 +35,14 @@ select * from t1 where a like 'a\\%' escape '#';
select * from t1 where a like 'a\\%' escape '#' and a like 'a\\\\b';
drop table t1;
+#
+# Bug #2885: like and datetime
+#
+
+create table t1 (a datetime);
+insert into t1 values ('2004-03-11 12:00:21');
+select * from t1 where a like '2004-03-11 12:00:21';
+drop table t1;
#
# Test like with non-default character set