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
时间: 2024-11-06 09:49:21