Skip to content

Commit

Permalink
handle freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
plantfansam committed Feb 12, 2024
1 parent c0b8daf commit ca78370
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ def query(sql)
kind: :client
) do |_span, context|
if propagator
sql = sql.dup if sql.frozen?
dup = sql.frozen?
sql = sql.dup if dup
propagator.inject(sql, context: context)
sql.freeze if dup
end

super(sql.freeze)
super(sql)
end
end

Expand Down

0 comments on commit ca78370

Please sign in to comment.