Module: Datadog::AppSec::Contrib::ActiveRecord::Instrumentation::ExecuteAndClearAdapterPatch

Defined in:
lib/datadog/appsec/contrib/active_record/instrumentation.rb

Overview

patch for postgres adapter in ActiveRecord < 7.1

Instance Method Summary collapse

Instance Method Details

#execute_and_clear(sql, *args, **rest) ⇒ Object



53
54
55
56
57
# File 'lib/datadog/appsec/contrib/active_record/instrumentation.rb', line 53

def execute_and_clear(sql, *args, **rest)
  Instrumentation.detect_sql_injection(sql, adapter_name)

  super
end