File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -3915,5 +3915,20 @@ t1 CREATE TABLE `t1` (
3915
3915
DROP TABLE t1;
3916
3916
SET sql_mode=DEFAULT;
3917
3917
#
3918
+ # MDEV-18456 Assertion `item->maybe_null' failed in Type_handler_temporal_result::make_sort_key
3919
+ #
3920
+ CREATE TABLE t1 (t TIME NOT NULL);
3921
+ INSERT INTO t1 VALUES ('00:20:11'),('14:52:05');
3922
+ SELECT GREATEST('9999', t) FROM t1 ORDER BY 1;
3923
+ GREATEST('9999', t)
3924
+ NULL
3925
+ NULL
3926
+ Warnings:
3927
+ Warning 1292 Truncated incorrect time value: '9999'
3928
+ Warning 1292 Truncated incorrect time value: '9999'
3929
+ Warning 1292 Truncated incorrect time value: '9999'
3930
+ Warning 1292 Truncated incorrect time value: '9999'
3931
+ DROP TABLE t1;
3932
+ #
3918
3933
# End of 10.3 tests
3919
3934
#
Original file line number Diff line number Diff line change @@ -710,6 +710,16 @@ SHOW CREATE TABLE t1;
710
710
DROP TABLE t1;
711
711
SET sql_mode=DEFAULT;
712
712
713
+ --echo #
714
+ --echo # MDEV-18456 Assertion `item->maybe_null' failed in Type_handler_temporal_result::make_sort_key
715
+ --echo #
716
+
717
+ CREATE TABLE t1 (t TIME NOT NULL);
718
+ INSERT INTO t1 VALUES ('00:20:11'),('14:52:05');
719
+ SELECT GREATEST('9999', t) FROM t1 ORDER BY 1;
720
+ DROP TABLE t1;
721
+
722
+
713
723
--echo #
714
724
--echo # End of 10.3 tests
715
725
--echo #
You can’t perform that action at this time.
0 commit comments