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
end
end
rails4.1 ,sqlserver2008 output for trigger,布布扣,bubuko.com
rails4.1 ,sqlserver2008 output for trigger
原文地址:http://www.cnblogs.com/goaldig/p/3922415.html