Skip to content

Conversation

@nielsreijers
Copy link
Contributor

When creating a table and specifying the dbname in mysql (create table testdb.foo (bar int not null)), the table name became testdb.foo, and in the statement to create the table in ClickHouse the database name was prepended again to get testdb.testdb.foo.

This change uses get_real_name() in sqlparse to get just the table name with the parent (in this case db) name stripped off.

@bakwc bakwc merged commit 714d94d into bakwc:master Dec 31, 2024
1 check passed
jaredmdobson pushed a commit to ReMatter/mysql_ch_replicator that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants