Skip to content

Commit d6f9243

Browse files
committed
Revert string_to_binary changes in 457af60. Fixes #273.
1 parent cdc570c commit d6f9243

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
* 3.2.12 *
3+
4+
* Revert string_to_binary changes in 457af60e. Fixes #273.
5+
6+
27
* 3.2.11 *
38

49
* Handle "No such column" when renaming some columns in the migrations. Fixes #237. Thanks @michelgrootjans.

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ def string_to_binary(value)
6969
end
7070

7171
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
7572
value =~ /[^[:xdigit:]]/ ? value : [value].pack('H*')
7673
end
7774

0 commit comments

Comments
 (0)