1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge remote-tracking branch 'origin/10.4' into 10.5

This commit is contained in:
Alexander Barkov
2020-08-23 15:55:50 +04:00
5 changed files with 88 additions and 0 deletions

View File

@ -1687,6 +1687,13 @@ public:
Time(int *warn, bool neg, ulonglong hour, uint minute, const Sec6 &second);
Time() { time_type= MYSQL_TIMESTAMP_NONE; }
Time(const Native &native);
Time(THD *thd, const MYSQL_TIME *ltime, const Options opt)
{
*(static_cast<MYSQL_TIME*>(this))= *ltime;
DBUG_ASSERT(is_valid_temporal());
int warn= 0;
valid_MYSQL_TIME_to_valid_value(thd, &warn, opt);
}
Time(Item *item)
:Time(current_thd, item)
{ }