Working commit

This commit is contained in:
millb 2019-11-08 20:56:43 +03:00
parent 001e113ca6
commit 044ee602e4

View File

@ -300,7 +300,10 @@ ReturnType readIntTextImpl(T & x, ReadBuffer & buf)
break;
default:
x = negative ? -res : res;
return ReturnType(true);
if (!buf.eof())
throw Exception("Invalid characters used", ErrorCodes::CANNOT_PARSE_NUMBER);
else
return ReturnType(true);
}
++buf.position();
}