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