Oops, already had a postgresql_version method!

This commit is contained in:
Jeremy Kemper
2008-06-22 18:50:19 -07:00
parent 3532eaf92a
commit a210f50361

View File

@@ -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,