Merge pull request #64883 from ClickHouse/fancy-quotes-fix

A tiny fix for fancy quotes
This commit is contained in:
Alexey Milovidov 2024-06-06 17:35:00 +02:00 committed by GitHub
commit afba7bb4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,6 @@ Token quotedStringWithUnicodeQuotes(const char *& pos, const char * const token_
pos = find_first_symbols<'\xE2'>(pos, end);
if (pos + 2 >= end)
return Token(error_token, token_begin, end);
/// Empty identifiers are not allowed, while empty strings are.
if (success_token == TokenType::QuotedIdentifier && pos + 3 >= end)
return Token(error_token, token_begin, end);
if (pos[0] == '\xE2' && pos[1] == '\x80' && pos[2] == expected_end_byte)
{

View File

@ -0,0 +1 @@
test

View File

@ -0,0 +1 @@
SELECT test AS column