mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
MDEV-4667 DATE('string') incompability between mysql and mariadb
Cleanup: remove TIME_FUZZY_DATE. Introduce TIME_FUZZY_DATES which means "very fuzzy, the resulting value is only used for comparison. It can be invalid date, fine, as long as it can be compared". Updated many tests results (they're better now).
This commit is contained in:
parent
cfae3065d7
commit
78cc6db44a
24 changed files with 125 additions and 111 deletions
|
|
@ -413,7 +413,7 @@ static void do_field_decimal(Copy_field *copy)
|
|||
static void do_field_temporal(Copy_field *copy)
|
||||
{
|
||||
MYSQL_TIME ltime;
|
||||
copy->from_field->get_date(<ime, TIME_FUZZY_DATE);
|
||||
copy->from_field->get_date(<ime, 0);
|
||||
copy->to_field->store_time_dec(<ime, copy->from_field->decimals());
|
||||
}
|
||||
|
||||
|
|
@ -884,7 +884,7 @@ int field_conv(Field *to,Field *from)
|
|||
if (from->cmp_type() == TIME_RESULT)
|
||||
{
|
||||
MYSQL_TIME ltime;
|
||||
if (from->get_date(<ime, TIME_FUZZY_DATE))
|
||||
if (from->get_date(<ime, 0))
|
||||
return to->reset();
|
||||
else
|
||||
return to->store_time_dec(<ime, from->decimals());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue