Skip to content

Commit

Permalink
Dup frozen columns array to force encoding (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenny authored Sep 4, 2024
1 parent 0972fb2 commit 664acef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blazer/adapters/sql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run_statement(statement, comment, bind_params = [])

# fix for non-ASCII column names and charts
if adapter_name == "Trilogy"
columns.map! { |k| k.dup.force_encoding(Encoding::UTF_8) }
columns = columns.map { |k| k.dup.force_encoding(Encoding::UTF_8) }
end
rescue => e
error = e.message.sub(/.+ERROR: /, "")
Expand Down

0 comments on commit 664acef

Please sign in to comment.