1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-17634 Regression: TIME(0)=TIME('z') returns NULL vs 1

This commit is contained in:
Alexander Barkov
2018-11-07 14:42:36 +04:00
parent 41e68e8e5b
commit a5e2a14ef3
4 changed files with 42 additions and 3 deletions

View File

@ -790,6 +790,10 @@ public:
Options_for_cast()
:Options(flags_for_get_date(), DATETIME_TO_TIME_YYYYMMDD_TRUNCATE)
{ }
Options_for_cast(date_mode_t mode)
:Options(flags_for_get_date() | (mode & TIME_FUZZY_DATES),
DATETIME_TO_TIME_YYYYMMDD_TRUNCATE)
{ }
};
private:
bool is_valid_value_slow() const