Small fix in deserializeWholeText

This commit is contained in:
avogar 2021-10-21 16:58:25 +03:00
parent d5c5a3213b
commit 7a37e24b52

View File

@ -353,11 +353,11 @@ ReturnType SerializationNullable::deserializeWholeTextImpl(IColumn & column, Rea
buf.setCheckpoint();
SCOPE_EXIT(buf.dropCheckpoint());
if (checkStringCaseInsensitive("NULL", buf))
if (checkStringCaseInsensitive("NULL", buf) && buf.eof())
return true;
buf.rollbackToCheckpoint();
if (checkStringCaseInsensitive("ᴺᵁᴸᴸ", buf))
if (checkStringCaseInsensitive("ᴺᵁᴸᴸ", buf) && buf.eof())
return true;
buf.rollbackToCheckpoint();