Permalink
Browse files

Oops, already had a postgresql_version method!

  • Loading branch information...
1 parent 3532eaf commit a210f503619dd27dc9575bcae1df596fd2387563 @jeremy jeremy committed Jun 23, 2008
Showing with 1 addition and 6 deletions.
  1. +1 −6 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
7 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -324,12 +324,7 @@ def supports_standard_conforming_strings?
end
def supports_insert_with_returning?
- unless defined? @supports_insert_with_returning
- @supports_insert_with_returning =
- @connection.respond_to?(:server_version) &&
- @connection.server_version >= 80200
- end
- @supports_insert_with_returning
+ postgresql_version >= 80200
end
# Returns the configured supported identifier length supported by PostgreSQL,

0 comments on commit a210f50

Please sign in to comment.