Skip to content

Commit 9ecfec0

Browse files
committed
probably another case of incorrect entity quoting - they should be quoted with double quotes
1 parent 2fbf817 commit 9ecfec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql2pgsql/lib/postgres_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_type(column):
126126
default, column_type = get_type(column)
127127

128128
if column.get('auto_increment', None):
129-
return '%s DEFAULT nextval(\'%s_%s_seq\'::regclass) NOT NULL' % (
129+
return '%s DEFAULT nextval("%s_%s_seq"::regclass) NOT NULL' % (
130130
column_type, column['table_name'], column['name'])
131131

132132
return '%s%s%s' % (column_type, (default if not default == None else ''), null)

0 commit comments

Comments
 (0)