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 77e154f commit 360f357Copy full SHA for 360f357
lib/arjdbc/mysql/adapter.rb
@@ -152,8 +152,8 @@ def quote(value, column = nil)
152
return value if sql_literal?(value)
153
return value.to_s if column && column.type == :primary_key
154
155
- if value.kind_of?(String) && column && column.type == :binary && column.class.respond_to?(:string_to_binary)
156
- "x'#{column.class.string_to_binary(value).unpack("H*")[0]}'"
+ if value.kind_of?(String) && column && column.type == :binary
+ "x'#{value.unpack("H*")[0]}'"
157
elsif value.kind_of?(BigDecimal)
158
value.to_s("F")
159
else
0 commit comments