mirror of
https://github.com/MariaDB/server.git
synced 2025-11-25 17:25:02 +03:00
lp:923429 Crash in decimal_cmp on using UNIX_TIMESTAMP with a wrongly formatted timestamp
UNIX_TIMESTAMP() can be null, and returns null for invalid values
This commit is contained in:
@@ -410,3 +410,10 @@ SHOW STATUS LIKE 'Handler_read_next';
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--echo #
|
||||
--echo # lp:923429 Crash in decimal_cmp on using UNIX_TIMESTAMP with a wrongly formatted timestamp
|
||||
--echo #
|
||||
SELECT UNIX_TIMESTAMP('abc') > 0;
|
||||
SELECT UNIX_TIMESTAMP('abc');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user