Affects Version/s: 10.0.3
Fix Version/s: 10.0.4
Run "valgrind --tool=memcheck mysqld" and execute this SQL query:
Valgrind reports uninitialized memory read.
It seems str_to_datetime() does not handle this case well
and leaves the "second_part" member of the "l_time"
This is the valgrind report:
Valgrind reports no problems with TIME.
The second part of the original report has been moved to MDEV-4844 Closed
The patch merging SQL standard temporal literals (from MySQL-5.6) fixed this problem.