Allow semicolon after JSONEachRow lines, for convenience [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2017-05-23 03:57:58 +03:00
parent 0e77575a76
commit 25209bf040

View File

@ -124,7 +124,7 @@ bool JSONEachRowRowInputStream::read(Block & block)
}
skipWhitespaceIfAny(istr);
if (!istr.eof() && *istr.position() == ',')
if (!istr.eof() && (*istr.position() == ',' || *istr.position() == ';')) /// Semicolon is added for convenience as it could be used at end of INSERT query.
++istr.position();
/// Fill non-visited columns with the default values.