mirror of
https://github.com/github/rails.git
synced 2026-01-27 23:38:11 -05:00
Oops, already had a postgresql_version method!
This commit is contained in:
@@ -324,12 +324,7 @@ module ActiveRecord
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user