mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
A cleanup for MDEV-16852
Changing data types for: - seconds from longlong to ulonglong - microseconds from long to ulong in: - parameters of calc_time_diff() - parameters of calc_time_from_sec() - Members of Sec6_add This will help to reuse the code easier: all other functions use ulonglong+long for seconds/microsecond, e.g.: - number_to_time() - number_to_datetime() - number_to_datetime_with_warn() - Field_temporal_with_date::store_decimal() - my_decimal2seconds() - Item::get_seconds()
This commit is contained in:
@ -758,8 +758,8 @@ bool get_next_time(const Time_zone *time_zone, my_time_t *next,
|
||||
|
||||
if (seconds)
|
||||
{
|
||||
longlong seconds_diff;
|
||||
long microsec_diff;
|
||||
ulonglong seconds_diff;
|
||||
ulong microsec_diff;
|
||||
bool negative= calc_time_diff(&local_now, &local_start, 1,
|
||||
&seconds_diff, µsec_diff);
|
||||
if (!negative)
|
||||
|
Reference in New Issue
Block a user