lib/gamma/importer/replace.rb in gamma-0.1.7 vs lib/gamma/importer/replace.rb in gamma-0.1.8

- old
+ new

@@ -102,11 +102,11 @@ c = if r[v].is_a?(Time) r[v].strftime("%Y-%m-%d %H:%M:%S") else r[v] end - "\"#{c.to_s.gsub('"', '\"').gsub("'", "\'")}\"" + "\"#{@out_client.client.escape(c.to_s)}\"" end.join(",") end def update_record_values(record, columns) r = record @@ -114,9 +114,9 @@ c = if r[v].is_a?(Time) r[v].strftime("%Y-%m-%d %H:%M:%S") else r[v] end - "`#{v}` = \"#{c.to_s.gsub('"', '\"').gsub("'", "\'")}\"" + "`#{v}` = \"#{@out_client.client.escape(c.to_s)}\"" end.join(",") end end