summaryrefslogtreecommitdiff
path: root/mysql-test/t/strict.test
diff options
context:
space:
mode:
authorramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-19 12:32:38 +0500
committerramil/ram@mysql.com/ramil.myoffice.izhnet.ru <>2007-04-19 12:32:38 +0500
commitbc1805891c85472a98c4a5d691d3c9e4859469b9 (patch)
tree0ed605f9c633727b5569e33b8d48b6139a7662d6 /mysql-test/t/strict.test
parente2873193c7ee6baf1414e3659cc2e306f3f46539 (diff)
parentd779739834964cc9f665190e34bdf0f3eb69cdbe (diff)
downloadmariadb-git-bc1805891c85472a98c4a5d691d3c9e4859469b9.tar.gz
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b22824/my50-b22824
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