Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #63 from rraub/55-fix-comments
Browse files Browse the repository at this point in the history
incorrect boolean logic, fixed column comment conditional
  • Loading branch information
kworr committed Aug 28, 2014
2 parents 9ebcc04 + 15e808e commit 48b2767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql2pgsql/lib/postgres_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def table_comments(self, table):
return comments.getvalue()

def column_comment(self, tablename, column):
if not column['comment']:
if column['comment']:
return (' COMMENT ON COLUMN %s.%s is %s;' % ( tablename, column['name'], QuotedString(column['comment']).getquoted()))
else:
return ''
Expand Down

0 comments on commit 48b2767

Please sign in to comment.