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 cdc570c commit d6f9243Copy full SHA for d6f9243
CHANGELOG
@@ -1,4 +1,9 @@
1
2
+* 3.2.12 *
3
+
4
+* Revert string_to_binary changes in 457af60e. Fixes #273.
5
6
7
* 3.2.11 *
8
9
* Handle "No such column" when renaming some columns in the migrations. Fixes #237. Thanks @michelgrootjans.
lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -69,9 +69,6 @@ def string_to_binary(value)
69
end
70
71
def binary_to_string(value)
72
- if value.respond_to?(:force_encoding) && value.encoding != Encoding::ASCII_8BIT
73
- value = value.force_encoding(Encoding::ASCII_8BIT)
74
- end
75
value =~ /[^[:xdigit:]]/ ? value : [value].pack('H*')
76
77
0 commit comments