mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
Added assertEOF
This commit is contained in:
parent
8ad704969c
commit
14c0093a18
@ -310,8 +310,7 @@ template <typename T>
|
||||
void completeReadIntTextImpl(T & x, ReadBuffer & buf)
|
||||
{
|
||||
readIntTextImpl<T, void>(x, buf);
|
||||
if (!buf.eof())
|
||||
throw Exception("Invalid characters used", ErrorCodes::CANNOT_PARSE_NUMBER);
|
||||
assertEOF(buf);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user