From 6932f6751e224c8f18e686c6cde5b3885bfc71a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 15 Jan 2010 11:03:15 +0100 Subject: ActiveRecord should give the connection id as payload, and not the whole connection. --- activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/connection_adapters') diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index d697cb8d11..7e80347f75 100755 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -196,7 +196,7 @@ module ActiveRecord name ||= "SQL" result = nil ActiveSupport::Notifications.instrument("active_record.sql", - :sql => sql, :name => name, :connection => self) do + :sql => sql, :name => name, :connection_id => self.object_id) do @runtime += Benchmark.ms { result = yield } end result -- cgit v1.2.3