Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Oops, already had a postgresql_version method!

  • Loading branch information...
commit a210f503619dd27dc9575bcae1df596fd2387563 1 parent 3532eaf
@jeremy jeremy authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.