mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
6cfbaf9f86
If some string literals are used in DDL, they might have `Character Set Introducers` https://dev.mysql.com/doc/refman/8.0/en/charset-introducer.html f.e. _utf8mb4'1' which is not parsable by current ParserStringLiteral. Since we use utf8 by default, suggesting to automatically convert the string literals to utf8 before executing the query and avoid any charset introducers there. Conversion from utf8 to utf8 is not needed and skipped. Also it might convert double quotes to single quotes if any which might solve issues with COMMENT and empty string literals "" in DEFAULT expressions. SELECT _latin1"abc"; -- might be also valid for MySQL ... DEFAULT "", ... COMMENT "abc" Currently no DEFAULT expressions are supported, not parsable at all, but using this MR it allows to parse the expressions together with double quotes as string literals. |
||
---|---|---|
.. | ||
ci | ||
config | ||
fuzz | ||
instructions | ||
integration | ||
jepsen.clickhouse | ||
perf_drafts | ||
performance | ||
queries | ||
sqllogic | ||
.gitignore | ||
.rgignore | ||
analyzer_integration_broken_tests.txt | ||
analyzer_tech_debt.txt | ||
clickhouse-test | ||
CMakeLists.txt | ||
tsan_suppressions.txt | ||
ubsan_suppressions.txt |