Commit a3b462e9 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'query-recorder-apply-bindings' into 'master'

Apply bindings to queries from QueryRecorder

See merge request gitlab-org/gitlab-ce!31689
parents f90759bb 0cdd69ed
......@@ -8,8 +8,11 @@ module ActiveRecord
@log = []
@cached = []
@skip_cached = skip_cached
# force replacement of bind parameters to give tests the ability to check for ids
ActiveRecord::Base.connection.unprepared_statement do
ActiveSupport::Notifications.subscribed(method(:callback), 'sql.active_record', &block)
end
end
def show_backtrace(values)
Rails.logger.debug("QueryRecorder SQL: #{values[:sql]}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment