public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
PostgreSQL: fix quote_string for certain old pg drivers.  [#94 state:resolved]
Lars Kanis (author)
Wed Aug 27 22:49:50 -0700 2008
jeremy (committer)
Wed Aug 27 22:51:10 -0700 2008
commit  c2068d14d29ec767c681798b3814f0a8e22fb0ff
tree    83fc13ffbfc652a171158dc342386798e85b5f77
parent  a444c782125e10ead6227f7cc57b2f5c739111f2
...
380
381
382
383
 
384
385
386
...
380
381
382
 
383
384
385
386
0
@@ -380,7 +380,7 @@ module ActiveRecord
0
           # There are some incorrectly compiled postgres drivers out there
0
           # that don't define PGconn.escape.
0
           self.class.instance_eval do
0
-            undef_method(:quote_string)
0
+            remove_method(:quote_string)
0
           end
0
         end
0
         quote_string(s)

Comments