diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-19 12:31:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-19 12:43:03 +0900 |
commit | 7db6bd7a23760f41c3a8a5dcd5b1b20737d90ede (patch) | |
tree | bc06a4948c9ad8b7436fac631665ea8e3ebc6b1a /activerecord/lib | |
parent | 28aaf77bb07af5e0108ff986e192e71da6d25078 (diff) | |
download | rails-7db6bd7a23760f41c3a8a5dcd5b1b20737d90ede.tar.gz rails-7db6bd7a23760f41c3a8a5dcd5b1b20737d90ede.tar.bz2 rails-7db6bd7a23760f41c3a8a5dcd5b1b20737d90ede.zip |
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.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 126047584e..def1dadb6a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -379,7 +379,7 @@ module ActiveRecord 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) |