Merge pull request #51359 from azat/keeper-client-fix-parser

Improve parsing of path in clickhouse-keeper-client
This commit is contained in:
pufit 2023-07-12 12:23:25 -04:00 committed by GitHub
commit 1f05e6b99f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ bool parseKeeperPath(IParser::Pos & pos, Expected & expected, String & path)
return parseIdentifierOrStringLiteral(pos, expected, path);
String result;
while (pos->type == TokenType::BareWord || pos->type == TokenType::Slash || pos->type == TokenType::Dot)
while (pos->type != TokenType::Whitespace && pos->type != TokenType::EndOfStream)
{
result.append(pos->begin, pos->end);
++pos;