diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-13 09:42:31 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-13 09:42:51 -0700 |
commit | eebb19c954d64760c232cda10263200f32fcf036 (patch) | |
tree | aa9d760d7680c75fd930c6032a50090c630d68d2 /activerecord/test/cases/adapters/postgresql | |
parent | 48fb6b338061c80deda92fd935992cee86a3b368 (diff) | |
download | rails-eebb19c954d64760c232cda10263200f32fcf036.tar.gz rails-eebb19c954d64760c232cda10263200f32fcf036.tar.bz2 rails-eebb19c954d64760c232cda10263200f32fcf036.zip |
use index based substitution for bind parameters
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb index 2d412a6e2a..7c49236854 100644 --- a/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb +++ b/activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb @@ -102,11 +102,11 @@ module ActiveRecord assert_equal [['1', 'foo']], result.rows end - def test_substitute_for - bind = @connection.substitute_for(nil, []) + def test_substitute_at + bind = @connection.substitute_at(nil, 0) assert_equal Arel.sql('$1'), bind - bind = @connection.substitute_for(nil, [nil]) + bind = @connection.substitute_at(nil, 1) assert_equal Arel.sql('$2'), bind end |