diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb index 3c0df411aa..03f5b5ee2b 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb @@ -203,7 +203,6 @@ module ActiveRecord end end end - log(sql, name, @connection) do |conn| conn.execute(sql) select_one("SELECT @@IDENTITY AS Ident")["Ident"] @@ -362,7 +361,7 @@ module ActiveRecord end def query_contains_identity_column(sql, col) - return sql =~ /[\(\.\,]\s*#{col}/ + return sql =~ /[\[.,]\s*#{col}/ end def get_order_by(sql) |