mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-4857 Wrong result of HOUR('1 00:00:00')
modified: mysql-test/r/func_time.result mysql-test/t/func_time.test sql-common/my_time.c sql/item_func.h sql/item_timefunc.cc sql/mysql_priv.h sql/time.cc
This commit is contained in:
@@ -158,7 +158,9 @@ public:
|
||||
}
|
||||
inline bool get_arg0_time(MYSQL_TIME *ltime)
|
||||
{
|
||||
return (null_value=args[0]->get_time(ltime));
|
||||
null_value= args[0]->get_time(ltime);
|
||||
DBUG_ASSERT(ltime->time_type != MYSQL_TIMESTAMP_TIME || ltime->day == 0);
|
||||
return null_value;
|
||||
}
|
||||
bool is_null() {
|
||||
update_null_value();
|
||||
|
Reference in New Issue
Block a user