Skip to content

Commit

Permalink
🐛 ensure index names do not collide with table names
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jan 14, 2024
1 parent f4ab6ce commit 518f21b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql_to_sqlite3/transporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ def _build_create_table_sql(self, table_name: str) -> str:
self._mysql_cur_dict.execute(
"""
SELECT COUNT(*) AS `count`
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = %s
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = %s
AND TABLE_NAME = %s
""",
(self._mysql_database, index_name),
Expand Down

0 comments on commit 518f21b

Please sign in to comment.