Skip to content

Commit 518f21b

Browse files
committed
🐛 ensure index names do not collide with table names
1 parent f4ab6ce commit 518f21b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: mysql_to_sqlite3/transporter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ def _build_create_table_sql(self, table_name: str) -> str:
420420
self._mysql_cur_dict.execute(
421421
"""
422422
SELECT COUNT(*) AS `count`
423-
FROM information_schema.TABLES
424-
WHERE TABLE_SCHEMA = %s
423+
FROM information_schema.TABLES
424+
WHERE TABLE_SCHEMA = %s
425425
AND TABLE_NAME = %s
426426
""",
427427
(self._mysql_database, index_name),

0 commit comments

Comments
 (0)