We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d6920 commit 450d070Copy full SHA for 450d070
ext/mysql2/extconf.rb
@@ -86,7 +86,7 @@ def add_ssl_defines(header)
86
/usr/local/opt/mysql@*
87
/usr/local/opt/mysql-client
88
/usr/local/opt/mysql-client@*
89
-].map { |dir| dir << '/bin' }
+].map { |dir| "#{dir}/bin" }
90
91
# For those without HOMEBREW_ROOT in PATH
92
dirs << "#{ENV['HOMEBREW_ROOT']}/bin" if ENV['HOMEBREW_ROOT']
spec/mysql2/client_spec.rb
@@ -886,7 +886,7 @@ def run_gc
886
end
887
888
it "should carry over the original string's encoding" do
889
- str = "abc'def\"ghi\0jkl%mno"
+ str = "abc'def\"ghi\0jkl%mno".dup
890
escaped = Mysql2::Client.escape(str)
891
expect(escaped.encoding).to eql(str.encoding)
892
0 commit comments