1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Bug#53942 valgrind warnings with timestamp() function and incomplete datetime values

Field_time::get_date method does not initialize MYSQL_TIME::time_type field.
The fix is to init this field.
This commit is contained in:
Sergey Glukhov
2010-05-31 13:25:11 +04:00
parent 6498472b9d
commit fe5d54959c
3 changed files with 22 additions and 15 deletions

View File

@@ -138,3 +138,13 @@ CAST(c AS TIME)
00:00:00
DROP TABLE t1;
End of 5.0 tests
#
# Bug#53942 valgrind warnings with timestamp() function and incomplete datetime values
#
CREATE TABLE t1(f1 TIME);
INSERT INTO t1 VALUES ('23:38:57');
SELECT TIMESTAMP(f1,'1') FROM t1;
TIMESTAMP(f1,'1')
NULL
DROP TABLE t1;
End of 5.1 tests