Skip to content

Commit

Permalink
Don't do unnecessary calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoleman committed Sep 8, 2011
1 parent f032930 commit 7f5d030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql2psql/postgres_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_row(table, row)
row[index] = row[index].to_s.gsub('0000-00-00 00:00:00', '1970-01-01 00:00:00')
end

if column_type(column) == "boolean"
if column[:type] == 'boolean'
row[index] = (
case row[index]
when nil
Expand Down

0 comments on commit 7f5d030

Please sign in to comment.