Skip to content
Browse files

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

…esolved]
  • Loading branch information...
1 parent 9aa3c59 commit b23b19109050af04e2e1d0f57aee306463f4cbb9 @larskanis larskanis committed with jeremy Aug 27, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -372,7 +372,7 @@ def quote_string(s) #:nodoc:
# There are some incorrectly compiled postgres drivers out there
# that don't define PGconn.escape.
self.class.instance_eval do
- undef_method(:quote_string)
+ remove_method(:quote_string)
end
end
quote_string(s)

0 comments on commit b23b191

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