Skip to content

Commit

Permalink
Fix quotes in USE db (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakwc authored Jan 23, 2025
1 parent 959e455 commit 1932617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql_ch_replicator/db_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def optimize_database(self, db_name):
self.mysql_api.close()
tables = [table for table in tables if self.config.is_table_matches(table)]

self.clickhouse_api.execute_command(f'USE {db_name}')
self.clickhouse_api.execute_command(f'USE `{db_name}`')
ch_tables = set(self.clickhouse_api.get_tables())

for table in tables:
Expand Down

0 comments on commit 1932617

Please sign in to comment.