aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-01-16 03:42:55 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-01-16 03:42:55 -0200
commitefe346f23a5c7489e32125529995640715ff8975 (patch)
tree314cbc683a61495c0ac76f7ee04f2226dd372d0c /activerecord/test/cases
parentd3e2f1069857d278d162af2d3de1d9a3c3197f4b (diff)
parent89653edaf6845d50cc5ac6bc19815e581454ce77 (diff)
downloadrails-efe346f23a5c7489e32125529995640715ff8975.tar.gz
rails-efe346f23a5c7489e32125529995640715ff8975.tar.bz2
rails-efe346f23a5c7489e32125529995640715ff8975.zip
Merge pull request #23067 from kamipo/sql_for_insert_returns_values_for_passing_to_exec_insert
`sql_for_insert` returns values for passing to `exec_insert`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
index cbf0f27020..f1995b243a 100644
--- a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
@@ -139,8 +139,8 @@ module ActiveRecord
def test_sql_for_insert_with_returning_disabled
connection = connection_without_insert_returning
- result = connection.sql_for_insert('sql', nil, nil, nil, 'binds')
- assert_equal ['sql', 'binds'], result
+ sql, binds = connection.sql_for_insert('sql', nil, nil, nil, 'binds')
+ assert_equal ['sql', 'binds'], [sql, binds]
end
def test_serial_sequence