Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mysql_ch_replicator/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,9 @@ def parse_mysql_table_structure(self, create_statement, required_table_name=None
if not isinstance(tokens[2], sqlparse.sql.Identifier):
raise Exception('wrong create statement', create_statement)

structure.table_name = strip_sql_name(tokens[2].normalized)
# get_real_name() returns the table name if the token is in the
# style `<dbname>.<tablename>`
structure.table_name = strip_sql_name(tokens[2].get_real_name())

if not isinstance(tokens[3], sqlparse.sql.Parenthesis):
raise Exception('wrong create statement', create_statement)
Expand Down
Loading