Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove deprecated #supports_statement_cache? from the database adap…
…ters
  • Loading branch information
rafaelfranca committed Jan 17, 2019
1 parent 400ba78 commit 5f3ed87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
@@ -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*
Expand Down
Expand Up @@ -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.
#
Expand Down
4 changes: 0 additions & 4 deletions activerecord/test/cases/bind_parameter_test.rb
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5f3ed87

Please sign in to comment.