diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-16 03:42:55 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-16 03:42:55 -0200 |
commit | efe346f23a5c7489e32125529995640715ff8975 (patch) | |
tree | 314cbc683a61495c0ac76f7ee04f2226dd372d0c /activerecord/test/cases | |
parent | d3e2f1069857d278d162af2d3de1d9a3c3197f4b (diff) | |
parent | 89653edaf6845d50cc5ac6bc19815e581454ce77 (diff) | |
download | rails-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.rb | 4 |
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 |