diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-15 20:52:36 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-15 20:52:36 +0900 |
commit | 89653edaf6845d50cc5ac6bc19815e581454ce77 (patch) | |
tree | 8dcb1acb94d91efd0d96e75b3b1bc3f13d9f5476 /activerecord/test | |
parent | b2874aec105c277b6008cb8d73ffd106a12b444b (diff) | |
download | rails-89653edaf6845d50cc5ac6bc19815e581454ce77.tar.gz rails-89653edaf6845d50cc5ac6bc19815e581454ce77.tar.bz2 rails-89653edaf6845d50cc5ac6bc19815e581454ce77.zip |
`sql_for_insert` returns values for passing to `exec_insert`
Diffstat (limited to 'activerecord/test')
-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 |