mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17400 The result of TIME('42949672965959-01') depends on architecture
- Fixing portabibily problems in sql-common/my_time.c (and additionally in sql/sql_time.cc) - Re-enabling func_time.test Now all new chunks added in MDEV-17351 work fine on all platforms.
This commit is contained in:
@ -1117,10 +1117,10 @@ calc_time_diff(const MYSQL_TIME *l_time1, const MYSQL_TIME *l_time2,
|
||||
}
|
||||
|
||||
microseconds= ((longlong)days * SECONDS_IN_24H +
|
||||
(longlong)(l_time1->hour*3600L +
|
||||
(longlong)(l_time1->hour*3600LL +
|
||||
l_time1->minute*60L +
|
||||
l_time1->second) -
|
||||
l_sign*(longlong)(l_time2->hour*3600L +
|
||||
l_sign*(longlong)(l_time2->hour*3600LL +
|
||||
l_time2->minute*60L +
|
||||
l_time2->second)) * 1000000LL +
|
||||
(longlong)l_time1->second_part -
|
||||
|
Reference in New Issue
Block a user