Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5f3ed87

Browse files
committed
Remove deprecated#supports_statement_cache? from the database adapters
1 parent400ba78 commit5f3ed87

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

‎activerecord/CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated`#supports_statement_cache?` from the database adapters.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated`#insert_fixtures` from the database adapters.
26

37
*Rafael Mendonça França*

‎activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,6 @@ def delete(arel, name = nil, binds = [])
173173
exec_delete(sql,name,binds)
174174
end
175175

176-
# Returns +true+ when the connection adapter supports prepared statement
177-
# caching, otherwise returns +false+
178-
defsupports_statement_cache?# :nodoc:
179-
true
180-
end
181-
deprecate:supports_statement_cache?
182-
183176
# Runs the given block in a database transaction, and returns the result
184177
# of the block.
185178
#

‎activerecord/test/cases/bind_parameter_test.rb‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ def test_logs_legacy_binds_after_type_cast
7777
assert_logs_binds(binds)
7878
end
7979

80-
deftest_deprecate_supports_statement_cache
81-
assert_deprecated{ActiveRecord::Base.connection.supports_statement_cache?}
82-
end
83-
8480
private
8581
defassert_logs_binds(binds)
8682
payload={

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp