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:46 -0700 2008
commit  79c3f73a7ff9452d1692c6150f8a7503d8afd459
tree    4072be52b20a3c427754fd6915f4cc2729645e1d
parent  d356987e2642ae9fc0c9ce6e2eb59d348e2358e8
...
346
347
348
349
 
350
351
352
...
346
347
348
 
349
350
351
352
0
@@ -346,7 +346,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