Skip to content
This repository
Browse code

PostgreSQL: fix quote_string for certain old pg drivers. [#94 state:r…

…esolved]
  • Loading branch information...
commit b23b19109050af04e2e1d0f57aee306463f4cbb9 1 parent 9aa3c59
Lars Kanis larskanis authored jeremy committed
2  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -372,7 +372,7 @@ def quote_string(s) #:nodoc:
372 372 # There are some incorrectly compiled postgres drivers out there
373 373 # that don't define PGconn.escape.
374 374 self.class.instance_eval do
375   - undef_method(:quote_string)
  375 + remove_method(:quote_string)
376 376 end
377 377 end
378 378 quote_string(s)

0 comments on commit b23b191

Please sign in to comment.
Something went wrong with that request. Please try again.