Remove connection_id key from the sql.active_record notification

This commit is contained in:
Rafael Mendonça França 2019-12-17 21:16:21 -03:00
parent 3869660608
commit d140ab073f
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
3 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
* Remove `:connection_id` from the `sql.active_record` notification.
*Aaron Patterson*, *Rafael Mendonça França*
* The `:name` key will no longer be returned as part of `DatabaseConfig#configuration_hash`. Please use `DatabaseConfig#owner_name` instead.
*Eileen M. Uchitelle*, *John Crepezzi*

View File

@ -678,7 +678,6 @@ module ActiveRecord
binds: binds,
type_casted_binds: type_casted_binds,
statement_name: statement_name,
connection_id: object_id,
connection: self) do
@lock.synchronize do
yield

View File

@ -349,7 +349,6 @@ Active Record
| -------------------- | ---------------------------------------- |
| `:sql` | SQL statement |
| `:name` | Name of the operation |
| `:connection_id` | Object ID of the connection object |
| `:connection` | Connection object |
| `:binds` | Bind parameters |
| `:type_casted_binds` | Typecasted bind parameters |
@ -362,7 +361,6 @@ INFO. The adapters will add their own data as well.
{
sql: "SELECT \"posts\".* FROM \"posts\" ",
name: "Post Load",
connection_id: 70307250813140,
connection: #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x00007f9f7a838850>,
binds: [#<ActiveModel::Attribute::WithCastValue:0x00007fe19d15dc00>],
type_casted_binds: [11],