提交 7db6bd7a 编写于 作者: R Ryuta Kamizono

Revert "`sql_for_insert` returns values for passing to `exec_insert`"

This reverts #23067. #23067 is for propagating `pk` value from
`sql_for_insert` to `exec_insert` (avoiding extra query for pg adapter).
Now `exec_insert` includes `sql_for_insert` since #26002 therefore this
propagating is no longer needed.
上级 28aaf77b
......@@ -379,7 +379,7 @@ def select_prepared(sql, name = nil, binds = [])
end
def sql_for_insert(sql, pk, id_value, sequence_name, binds)
[sql, binds, pk, sequence_name]
[sql, binds]
end
def last_inserted_id(result)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册