File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -834,5 +834,13 @@ a b a b
834
834
DEALLOCATE PREPARE stmt1;
835
835
DROP TABLE t1,t2;
836
836
#
837
+ # MDEV-9374 having '2015-01-01 01:00:00.000001' > coalesce(NULL) returns true
838
+ #
839
+ CREATE TABLE t1 (c1 DATETIME(0));
840
+ INSERT INTO t1 VALUES (NULL);
841
+ SELECT * FROM t1 HAVING '2015-01-01 01:00:00.000001' > COALESCE(c1);
842
+ c1
843
+ DROP TABLE t1;
844
+ #
837
845
# End of 5.5 tests
838
846
#
Original file line number Diff line number Diff line change @@ -610,6 +610,14 @@ EXECUTE stmt1;
610
610
DEALLOCATE PREPARE stmt1;
611
611
DROP TABLE t1,t2;
612
612
613
+ --echo #
614
+ --echo # MDEV-9374 having '2015-01-01 01:00:00.000001' > coalesce(NULL) returns true
615
+ --echo #
616
+ CREATE TABLE t1 (c1 DATETIME(0));
617
+ INSERT INTO t1 VALUES (NULL);
618
+ SELECT * FROM t1 HAVING '2015-01-01 01:00:00.000001' > COALESCE(c1);
619
+ DROP TABLE t1;
620
+
613
621
--echo #
614
622
--echo # End of 5.5 tests
615
623
--echo #
You can’t perform that action at this time.
0 commit comments