Skip to content

Commit

Permalink
Fix for old Rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Sep 23, 2020
1 parent 05af0bd commit 120d59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ddtrace/contrib/sequel/utils.rb
Expand Up @@ -33,7 +33,7 @@ def parse_opts(sql, opts, db_opts, dataset = nil)
unless sql.is_a?(String)
if dataset && dataset.respond_to?(:prepared_sql) && (resolved_sql = dataset.prepared_sql)
# The dataset contains the resolved SQL query and prepared statement name.
prepared_name = dataset.opts[:prepared_statement_name]
prepared_name = dataset.prepared_statement_name
sql = resolved_sql
end
end
Expand Down

0 comments on commit 120d59f

Please sign in to comment.