Fixed error in clickhouse-client [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-03-01 09:18:25 +03:00
parent 8cb640ac54
commit c80a0e549a

View File

@ -459,7 +459,7 @@ private:
while (ws > 0 && isWhitespaceASCII(line[ws - 1]))
--ws;
if (ws == 0 && line.empty())
if (ws == 0 || line.empty())
continue;
bool ends_with_semicolon = line[ws - 1] == ';';