Remove connection_id key from the sql.active_record notification
This commit is contained in:
parent
3869660608
commit
d140ab073f
@ -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*
|
||||
|
@ -678,7 +678,6 @@ def log(sql, name = "SQL", binds = [], type_casted_binds = [], statement_name =
|
||||
binds: binds,
|
||||
type_casted_binds: type_casted_binds,
|
||||
statement_name: statement_name,
|
||||
connection_id: object_id,
|
||||
connection: self) do
|
||||
@lock.synchronize do
|
||||
yield
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user