Module: Datadog::AppSec::Contrib::ActiveRecord::Instrumentation::ExecQueryAdapterPatch
- Defined in:
- lib/datadog/appsec/contrib/active_record/instrumentation.rb
Overview
patch for mysql2 and sqlite3 adapters in ActiveRecord < 7.1 this patch is also used when using JDBC adapter
Instance Method Summary collapse
Instance Method Details
#exec_query(sql, *args, **rest) ⇒ Object
63 64 65 66 67 |
# File 'lib/datadog/appsec/contrib/active_record/instrumentation.rb', line 63 def exec_query(sql, *args, **rest) Instrumentation.detect_sql_injection(sql, adapter_name) super end |