mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Fixed compilation error on Apple Clang
This commit is contained in:
parent
07041d45c9
commit
1dae33753c
@ -552,13 +552,13 @@ void parseDateTime64BestEffort(DateTime64 & res, UInt32 scale, ReadBuffer & in,
|
||||
|
||||
bool tryParseDateTime64BestEffort(DateTime64 & res, UInt32 scale, ReadBuffer & in, const DateLUTImpl & local_time_zone, const DateLUTImpl & utc_time_zone)
|
||||
{
|
||||
DateTime64::NativeType whole;
|
||||
time_t whole;
|
||||
DateTime64::NativeType fractional;
|
||||
const auto result = parseDateTimeBestEffortImpl<bool>(whole, in, local_time_zone, utc_time_zone, &fractional);
|
||||
if (!parseDateTimeBestEffortImpl<bool>(whole, in, local_time_zone, utc_time_zone, &fractional))
|
||||
return false;
|
||||
|
||||
res = decimalFromComponents<DateTime64>(whole, fractional, scale);
|
||||
|
||||
return result;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user