summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_like.test
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-03-11 18:21:57 +0400
committerunknown <ram@gw.mysql.r18.ru>2004-03-11 18:21:57 +0400
commit19998067334a588d968cf75e6041a105000cca7b (patch)
tree7b51b0bc72f1abe7318456491246125ea2b4cc4b /mysql-test/t/func_like.test
parent188535bba0964652678c3ce82b2dae3a1ef8bb25 (diff)
downloadmariadb-git-19998067334a588d968cf75e6041a105000cca7b.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