首页 > 代码库 > rails4.1 ,sqlserver2008 output for trigger

rails4.1 ,sqlserver2008 output for trigger

module ActiveRecord  module ConnectionAdapters    module Sqlserver      module DatabaseStatements        def sql_for_insert(sql, pk, id_value, sequence_name, binds)          ["#{sql}; SELECT CAST(SCOPE_IDENTITY() AS bigint) AS Ident", binds]        end      end    end  endend