Skip to content

Commit 1932617

Browse files
authored
Fix quotes in USE db (#89)
1 parent 959e455 commit 1932617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_ch_replicator/db_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def optimize_database(self, db_name):
8282
self.mysql_api.close()
8383
tables = [table for table in tables if self.config.is_table_matches(table)]
8484

85-
self.clickhouse_api.execute_command(f'USE {db_name}')
85+
self.clickhouse_api.execute_command(f'USE `{db_name}`')
8686
ch_tables = set(self.clickhouse_api.get_tables())
8787

8888
for table in tables:

0 commit comments

Comments
 (0)