Skip to content

Commit 9fa4744

Browse files
author
Roman Klesel
committed
PK-definition in MySQL may have multipel blanks
1 parent a84eb06 commit 9fa4744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql2pgsql/lib/mysql_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
re_column_precision = re.compile(r'\((\d+),(\d+)\)')
1212
re_key_1 = re.compile(r'CONSTRAINT `(\w+)` FOREIGN KEY \(`(\w+)`\) REFERENCES `(\w+)` \(`(\w+)`\)')
1313
re_key_2 = re.compile(r'KEY `(\w+)` \((.*)\)')
14-
re_key_3 = re.compile(r'PRIMARY KEY \((.*)\)')
14+
re_key_3 = re.compile(r'PRIMARY KEY +\((.*)\)')
1515

1616

1717
class DB:

0 commit comments

Comments
 (0)