diff --git a/lib/mysql2psql/postgres_writer.rb b/lib/mysql2psql/postgres_writer.rb index bd4980e..5befc69 100644 --- a/lib/mysql2psql/postgres_writer.rb +++ b/lib/mysql2psql/postgres_writer.rb @@ -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