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.
2 parents bda0dac + fda9e75 commit ab3e4a6Copy full SHA for ab3e4a6
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -352,7 +352,7 @@ def table_name_or_views_table_name(table_name)
352
353
def views_real_column_name(table_name, column_name)
354
view_definition = schema_cache.view_information(table_name)[:VIEW_DEFINITION]
355
- match_data = view_definition.match(/([\w-]*)\s+as\s+#{column_name}/im) rescue nil
+ match_data = view_definition.match(/([\w-]*)\s+as\s+#{column_name}/im)
356
match_data ? match_data[1] : column_name
357
end
358
0 commit comments