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:36 -0700 2008
commit  b23b19109050af04e2e1d0f57aee306463f4cbb9
tree    c9bf6e2cb140443f276bd407e80c34f061b227b5
parent  9aa3c59b21433528575052a6571c62c343dd1ce7
...
372
373
374
375
 
376
377
378
...
372
373
374
 
375
376
377
378
0
@@ -372,7 +372,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