summaryrefslogtreecommitdiff
path: root/mysql-test/t/strict.test
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-04-19 12:32:38 +0500
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-04-19 12:32:38 +0500
commit5198d0b4a8aabb57a5b1245464d238a17f033f94 (patch)
tree0ed605f9c633727b5569e33b8d48b6139a7662d6 /mysql-test/t/strict.test
parent39754b2423d78e52735dfa5f54da471d557db4df (diff)
parent2f11f1d3a9b4138315d4f0bcf3e8725dbfb25e02 (diff)
downloadmariadb-git-5198d0b4a8aabb57a5b1245464d238a17f033f94.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b22824/my50-b22824 sql/item_cmpfunc.cc: Auto merged mysql-test/r/strict.result: merging mysql-test/t/strict.test: merging
Diffstat (limited to 'mysql-test/t/strict.test')
-rw-r--r--mysql-test/t/strict.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test
index 1792c0fccbc..faca9e7b080 100644
--- a/mysql-test/t/strict.test
+++ b/mysql-test/t/strict.test
@@ -1258,4 +1258,12 @@ create table t1 (f1 set('a','a'));
--error 1291
create table t1 (f1 enum('a','a'));
+#
+# Bug #22824: strict, datetime, NULL, wrong warning
+#
+set @@sql_mode='NO_ZERO_DATE';
+create table t1(a datetime not null);
+select count(*) from t1 where a is null;
+drop table t1;
+
--echo End of 5.0 tests