diff options
author | Xavier Noria <fxn@hashref.com> | 2012-01-30 13:47:42 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-01-30 13:47:42 -0800 |
commit | de161003c36a0cd967aa393e7706b12055770174 (patch) | |
tree | b2b477b4aa5064a657a180c3b0f0c4fe65b45e3e /activerecord | |
parent | 7619bcf2d4a348cb48b765e1980e935abbcc694f (diff) | |
download | rails-de161003c36a0cd967aa393e7706b12055770174.tar.gz rails-de161003c36a0cd967aa393e7706b12055770174.tar.bz2 rails-de161003c36a0cd967aa393e7706b12055770174.zip |
query cache instrumentation should included the bindings in the payload [closes #4750]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb index 27ff13ad89..52f09efd53 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb @@ -69,7 +69,7 @@ module ActiveRecord result = if @query_cache[sql].key?(binds) ActiveSupport::Notifications.instrument("sql.active_record", - :sql => sql, :name => "CACHE", :connection_id => object_id) + :sql => sql, :binds => binds, :name => "CACHE", :connection_id => object_id) @query_cache[sql][binds] else @query_cache[sql][binds] = yield |