mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
A 32bit cleanup for MDEV-14452 Precision in INTERVAL xxx DAY_MICROSECOND parsed wrong?
"mtr func_date_add" failed on 32-bit platforms. Removing a wrong case to "long". Both values[] and log_10_int[] are arrays of "ulonglong", no cast is needed.
This commit is contained in:
parent
8152c52e1a
commit
efb9dec2b9
1 changed files with 2 additions and 2 deletions
|
|
@ -732,9 +732,9 @@ static bool get_interval_info(const char *str,uint length,CHARSET_INFO *cs,
|
|||
if (transform_msec && field_length > 0)
|
||||
{
|
||||
if (field_length < 6)
|
||||
values[count - 1] *= (long) log_10_int[6 - field_length];
|
||||
values[count - 1] *= log_10_int[6 - field_length];
|
||||
else if (field_length > 6)
|
||||
values[count - 1] /= (long) log_10_int[field_length - 6];
|
||||
values[count - 1] /= log_10_int[field_length - 6];
|
||||
}
|
||||
|
||||
return (str != end);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue