Skip to content
Permalink
Browse files
Remove deprecated #supports_statement_cache? from the database adap…
…ters
  • Loading branch information
rafaelfranca committed Jan 17, 2019
1 parent 400ba78 commit 5f3ed8784383fb4eb0f9959f31a9c28a991b7553
@@ -1,3 +1,7 @@
* Remove deprecated `#supports_statement_cache?` from the database adapters.

*Rafael Mendonça França*

* Remove deprecated `#insert_fixtures` from the database adapters.

*Rafael Mendonça França*
@@ -173,13 +173,6 @@ def delete(arel, name = nil, binds = [])
exec_delete(sql, name, binds)
end

# Returns +true+ when the connection adapter supports prepared statement
# caching, otherwise returns +false+
def supports_statement_cache? # :nodoc:
true
end
deprecate :supports_statement_cache?

# Runs the given block in a database transaction, and returns the result
# of the block.
#
@@ -77,10 +77,6 @@ def test_logs_legacy_binds_after_type_cast
assert_logs_binds(binds)
end

def test_deprecate_supports_statement_cache
assert_deprecated { ActiveRecord::Base.connection.supports_statement_cache? }
end

private
def assert_logs_binds(binds)
payload = {

0 comments on commit 5f3ed87

Please sign in to comment.