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:48:05 -0800 |
commit | 413790559c6d803b89eb5daf7d0dff39d8f7c991 (patch) | |
tree | a36843407057c093904c10542d126604053288f4 /activerecord/lib/active_record/connection_adapters/abstract | |
parent | 766e12aa7d8cf1bbd6d2b96b7de459f747efc375 (diff) | |
download | rails-413790559c6d803b89eb5daf7d0dff39d8f7c991.tar.gz rails-413790559c6d803b89eb5daf7d0dff39d8f7c991.tar.bz2 rails-413790559c6d803b89eb5daf7d0dff39d8f7c991.zip |
query cache instrumentation should included the bindings in the payload [closes #4750]
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-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 |