Added assertEOF

This commit is contained in:
millb 2019-11-12 16:42:37 +03:00
parent 8ad704969c
commit 14c0093a18

View File

@ -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>