Skip to content

Commit 5130c48

Browse files
committed
Update schema_statements.rb
1 parent 3d33375 commit 5130c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def view_information(table_name)
712712
view_info = select_one "SELECT * FROM #{information_query_table} WITH (NOLOCK) WHERE TABLE_NAME = #{quote(identifier.object)}", "SCHEMA"
713713

714714
if view_info
715-
view_info = view_info.with_indifferent_access
715+
view_info = view_info.to_h.with_indifferent_access
716716
if view_info[:VIEW_DEFINITION].blank? || view_info[:VIEW_DEFINITION].length == 4000
717717
view_info[:VIEW_DEFINITION] = begin
718718
select_values("EXEC sp_helptext #{identifier.object_quoted}", "SCHEMA").join

0 commit comments

Comments
 (0)