ClickHouse/tests/integration/test_materialized_mysql_database
Val Doroshchuk 6cfbaf9f86 MaterializedMySQL: Introduce Character Set Introducers
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.
2023-09-14 08:24:25 +02:00
..
configs MaterializedMySQL: Add test_named_collections 2023-06-13 10:09:12 +02:00
__init__.py
materialized_with_ddl.py MaterializedMySQL: Introduce Character Set Introducers 2023-09-14 08:24:25 +02:00
test.py MaterializedMySQL: Introduce Character Set Introducers 2023-09-14 08:24:25 +02:00