next
end
if row[index].is_a?(Mysql::Time)
- row[index] = row[index].to_s
+ row[index] = row[index].to_s.gsub('0000-00-00 00:00', '1970-01-01 00:00')
next
end
if column_type(column) == "bytea"
row[index] = PGconn.quote(row[index])
else
- row[index] = row[index].gsub(/\\/, '\\\\\\').gsub(/\n/,'\n').gsub(/\t/,'\t').gsub(/\r/,'\r')
+ row[index] = row[index].gsub(/\\/, '\\\\\\').gsub(/\n/,'\n').gsub(/\t/,'\t').gsub(/\r/,'\r').gsub(/\0/, '')
end
end
end