Skip to content

Commit

Permalink
Add .dup on an empty string to get an non-frozen option
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprokopiev committed Mar 27, 2024
1 parent f964ab2 commit 35b25a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/github/sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def initialize(query = nil, binds = nil)
@last_insert_id = nil
@affected_rows = nil
@binds = binds ? binds.dup : {}
@query = ""
@query = "".dup
@connection = @binds.delete :connection
@force_timezone = @binds.delete :force_timezone

Expand Down

0 comments on commit 35b25a5

Please sign in to comment.