mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
bugfix: TIME_FORMAT() allowed some non-time format specifiers
it contradicted the manual and was inconsistent
This commit is contained in:
@ -558,3 +558,18 @@ SET NAMES latin1;
|
||||
#
|
||||
# End of 5.1 tests
|
||||
#
|
||||
select time_format('2001-01-01 02:02:02', '%d.%m.%Y');
|
||||
time_format('2001-01-01 02:02:02', '%d.%m.%Y')
|
||||
NULL
|
||||
select time_format('2001-01-01 02:02:02', '%d %T');
|
||||
time_format('2001-01-01 02:02:02', '%d %T')
|
||||
NULL
|
||||
select time_format('01 02:02:02', '%d %T');
|
||||
time_format('01 02:02:02', '%d %T')
|
||||
NULL
|
||||
select time_format('01 02:02:02', '%T');
|
||||
time_format('01 02:02:02', '%T')
|
||||
26:02:02
|
||||
select time_format('2001-01-01 02:02:02', '%T');
|
||||
time_format('2001-01-01 02:02:02', '%T')
|
||||
02:02:02
|
||||
|
Reference in New Issue
Block a user