mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
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:
parent
4469540d39
commit
f4e999d753
2 changed files with 29 additions and 0 deletions
plugin/type_uuid/mysql-test/type_uuid
15
plugin/type_uuid/mysql-test/type_uuid/type_uuid_ps.result
Normal file
15
plugin/type_uuid/mysql-test/type_uuid/type_uuid_ps.result
Normal 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
|
14
plugin/type_uuid/mysql-test/type_uuid/type_uuid_ps.test
Normal file
14
plugin/type_uuid/mysql-test/type_uuid/type_uuid_ps.test
Normal 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
|
Loading…
Add table
Reference in a new issue