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 3d33375 commit 5130c48Copy full SHA for 5130c48
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -712,7 +712,7 @@ def view_information(table_name)
712
view_info = select_one "SELECT * FROM #{information_query_table} WITH (NOLOCK) WHERE TABLE_NAME = #{quote(identifier.object)}", "SCHEMA"
713
714
if view_info
715
- view_info = view_info.with_indifferent_access
+ view_info = view_info.to_h.with_indifferent_access
716
if view_info[:VIEW_DEFINITION].blank? || view_info[:VIEW_DEFINITION].length == 4000
717
view_info[:VIEW_DEFINITION] = begin
718
select_values("EXEC sp_helptext #{identifier.object_quoted}", "SCHEMA").join
0 commit comments