mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge d05b06fda7
into 44b4bd38b9
This commit is contained in:
commit
9a190ce374
@ -468,13 +468,15 @@ ReturnType readIntTextImpl(T & x, ReadBuffer & buf)
|
||||
}
|
||||
|
||||
end:
|
||||
if (has_sign && !has_number)
|
||||
if (!has_number)
|
||||
{
|
||||
if constexpr (throw_exception)
|
||||
if constexpr (!throw_exception)
|
||||
return ReturnType(false);
|
||||
if (has_sign)
|
||||
throw Exception(ErrorCodes::CANNOT_PARSE_NUMBER,
|
||||
"Cannot parse number with a sign character but without any numeric character");
|
||||
else
|
||||
return ReturnType(false);
|
||||
throw Exception(ErrorCodes::CANNOT_PARSE_NUMBER,
|
||||
"Cannot parse number without any numeric character");
|
||||
}
|
||||
x = res;
|
||||
if constexpr (is_signed_v<T>)
|
||||
|
Loading…
Reference in New Issue
Block a user