Skip to content

Commit c346c08

Browse files
committed
Fix get_utf8_columns to assign @table_columns to a hash not an array.
1 parent 9f6cfd0 commit c346c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def repair_special_columns(sql)
790790

791791
def get_utf8_columns(table_name)
792792
utf8 = []
793-
@table_columns ||= []
793+
@table_columns ||= {}
794794
@table_columns[table_name] ||= columns(table_name)
795795
@table_columns[table_name].each do |col|
796796
utf8 << col.name if col.is_utf8

0 commit comments

Comments
 (0)