Skip to content

Commit

Permalink
move backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Selfeer committed Feb 1, 2024
1 parent 736247a commit 5189cfd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def generate_table_name(length):
# Add backticks to handle these special cases
name = f"{name}"

table_names.add(f"/`{name}/`")
table_names.add(f"{name}")

return table_names

Expand All @@ -53,14 +53,14 @@ def check_table_names(self, table_name):

with Given(f"I create the {table_name} table"):
create_mysql_to_clickhouse_replicated_table(
name=table_name,
name=f"/`{table_name}/`",
mysql_columns="x INT",
clickhouse_columns="x Int32",
clickhouse_table_engine=self.context.clickhouse_table_engines[0],
)

with And("I insert data into the table"):
mysql_node.query(f"INSERT INTO {table_name} VALUES (1);")
mysql_node.query(f"INSERT INTO /`{table_name}/` VALUES (1);")

with Check(f"I check that the {table_name} was created in the ClickHouse side"):
for retry in retries(timeout=20):
Expand Down

0 comments on commit 5189cfd

Please sign in to comment.