From: MoonWolf <moo...@mo...> - 2002-08-04 01:31:01
|
http://sourceforge.net/tracker/index.php?func=detail&aid=586785&group_id=43737&atid=437251 http://developer.postgresql.org/docs/postgres/sql-syntax.html#SQL-SYNTAX-CONSTANTS Index: Pg.rb =================================================================== RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v retrieving revision 1.23 diff -r1.23 Pg.rb 306c306,317 < --- > > def quote(value) > case value > when String > value = value.gsub(/'/, "''") # ' (for ruby-mode) > value.gsub!(/\\/, '\\\\\\') > "'#{value}'" > else > super > end > end > 499a511,520 > def quote(value) > case value > when String > value = value.gsub(/'/, "''") # ' (for ruby-mode) > value.gsub!(/\\/, '\\\\\\') > "'#{value}'" > else > super > end > end MoonWolf <moo...@mo...> |