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 0f02058 commit f87dbd6Copy full SHA for f87dbd6
lib/active_record/connection_adapters/sqlserver/schema_statements.rb
@@ -674,7 +674,7 @@ def get_table_name(sql)
674
# Parses the raw table name that is used in the SQL. Table name could include database/schema/etc.
675
def get_raw_table_name(sql)
676
case sql
677
- when /^\s*(INSERT|EXEC sp_executesql N'INSERT)(\s+INTO)?\s+([^\(\s]+)\s*|^\s*update\s+([^\(\s]+)\s*/i
+ when /^\s*(INSERT|EXEC sp_executesql N'INSERT)(\s+INTO)?\s+([^\(]+)\s*|^\s*update\s+([^\(\s]+)\s*/i
678
Regexp.last_match[3] || Regexp.last_match[4]
679
when /FROM\s+([^\(\s]+)\s*/i
680
Regexp.last_match[1]
0 commit comments