mirror of
https://github.com/github/rails.git
synced 2026-02-01 09:44:56 -05:00
supports_insert_with_returning? caches false result also
This commit is contained in:
@@ -324,9 +324,12 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def supports_insert_with_returning?
|
||||
@supports_insert_with_returning ||=
|
||||
@connection.respond_to?(:server_version) &&
|
||||
@connection.server_version >= 80200
|
||||
unless defined? @supports_insert_with_returning
|
||||
@supports_insert_with_returning =
|
||||
@connection.respond_to?(:server_version) &&
|
||||
@connection.server_version >= 80200
|
||||
end
|
||||
@supports_insert_with_returning
|
||||
end
|
||||
|
||||
# Returns the configured supported identifier length supported by PostgreSQL,
|
||||
|
||||
Reference in New Issue
Block a user