mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17740 Extend EXTRACT(x AS DAY*) to understand long time intervals
This commit is contained in:
@ -3215,7 +3215,8 @@ static void fetch_string_with_conversion(MYSQL_BIND *param, char *value, size_t
|
||||
{
|
||||
MYSQL_TIME *tm= (MYSQL_TIME *)buffer;
|
||||
MYSQL_TIME_STATUS status;
|
||||
str_to_datetime_or_date_or_time(value, length, tm, 0, &status);
|
||||
str_to_datetime_or_date_or_time(value, length, tm, 0, &status,
|
||||
TIME_MAX_HOUR, UINT_MAX32);
|
||||
err= status.warnings;
|
||||
*param->error= MY_TEST(err);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user