MDEV-35427 Assertion `is_null() >= item->null_value' failed in Timestamp_or_zero_datetime_native_null::Timestamp_or_zero_datetime_native_null on EXECUTE

This problem was earlier fixed by MDEV-25593.
Adding a test case only.
This commit is contained in:
Alexander Barkov 2025-01-15 13:18:12 +04:00
parent 4469540d39
commit f4e999d753
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# Start of 10.11 tests
#
# MDEV-35427 Assertion `is_null() >= item->null_value' failed in Timestamp_or_zero_datetime_native_null::Timestamp_or_zero_datetime_native_null on EXECUTE
#
SET time_zone='+00:00';
PREPARE s FROM 'SELECT CONCAT (UNIX_TIMESTAMP(?))';
EXECUTE s USING CAST('00000000-0000-0000-0000-000000000001' AS UUID);
CONCAT (UNIX_TIMESTAMP(?))
1736899200
EXECUTE s USING @unknown_variable;
CONCAT (UNIX_TIMESTAMP(?))
NULL
DEALLOCATE PREPARE s;
SET time_zone=DEFAULT;
# End of 10.11 tests

View file

@ -0,0 +1,14 @@
--echo # Start of 10.11 tests
--echo #
--echo # MDEV-35427 Assertion `is_null() >= item->null_value' failed in Timestamp_or_zero_datetime_native_null::Timestamp_or_zero_datetime_native_null on EXECUTE
--echo #
SET time_zone='+00:00';
PREPARE s FROM 'SELECT CONCAT (UNIX_TIMESTAMP(?))';
EXECUTE s USING CAST('00000000-0000-0000-0000-000000000001' AS UUID);
EXECUTE s USING @unknown_variable;
DEALLOCATE PREPARE s;
SET time_zone=DEFAULT;
--echo # End of 10.11 tests