Skip to content

Commit 48b2767

Browse files
committed
Merge pull request ps0uth#63 from rraub/55-fix-comments
incorrect boolean logic, fixed column comment conditional
2 parents 9ebcc04 + 15e808e commit 48b2767

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
@@ -140,7 +140,7 @@ def table_comments(self, table):
140140
return comments.getvalue()
141141

142142
def column_comment(self, tablename, column):
143-
if not column['comment']:
143+
if column['comment']:
144144
return (' COMMENT ON COLUMN %s.%s is %s;' % ( tablename, column['name'], QuotedString(column['comment']).getquoted()))
145145
else:
146146
return ''

0 commit comments

Comments
 (0)