Skip to content

Commit e896635

Browse files
committed
Fix query cache for pinned connections in multi threaded transactional tests
Ref: rails/rails#55703
1 parent 19268ed commit e896635

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/support/core_ext/query_cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module SqlIgnoredCache
2323
def cache_sql(sql, name, binds)
2424
result = super
2525

26-
@query_cache.instance_variable_get(:@map).delete_if do |cache_key, _v|
26+
query_cache.instance_variable_get(:@map).delete_if do |cache_key, _v|
2727
# Query cache key generated by `sql` or `[sql, binds]`, so need to retrieve `sql` for both cases.
2828
cache_key_sql = Array(cache_key).first
2929
Regexp.union(IGNORED_SQL).match?(cache_key_sql)

0 commit comments

Comments
 (0)