diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 14:56:06 -0800 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-17 14:57:01 -0800 |
commit | c01b20b658c9fe4b7d54f4a227a09cb090b5763d (patch) | |
tree | db37ae6eefdff0029671d258ca5a4a6c71a1ae55 /activerecord/test/cases/bind_parameter_test.rb | |
parent | bf149679f426c1f6d3e5d280ed19b42f62c9b33f (diff) | |
download | rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.tar.gz rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.tar.bz2 rails-c01b20b658c9fe4b7d54f4a227a09cb090b5763d.zip |
rm `reorder_bind_params`
Arel handles this for us automatically. Updated tests, as BindParam is
no longer a subclass of SqlLiteral. We should remove the second argument
to substitute_at entirely, as it's no longer used
Diffstat (limited to 'activerecord/test/cases/bind_parameter_test.rb')
-rw-r--r-- | activerecord/test/cases/bind_parameter_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/bind_parameter_test.rb b/activerecord/test/cases/bind_parameter_test.rb index 0bc7ee6d64..d1fdfb2458 100644 --- a/activerecord/test/cases/bind_parameter_test.rb +++ b/activerecord/test/cases/bind_parameter_test.rb @@ -33,7 +33,7 @@ module ActiveRecord def test_binds_are_logged sub = @connection.substitute_at(@pk, 0) binds = [[@pk, 1]] - sql = "select * from topics where id = #{sub}" + sql = "select * from topics where id = #{sub.to_sql}" @connection.exec_query(sql, 'SQL', binds) @@ -44,7 +44,7 @@ module ActiveRecord def test_binds_are_logged_after_type_cast sub = @connection.substitute_at(@pk, 0) binds = [[@pk, "3"]] - sql = "select * from topics where id = #{sub}" + sql = "select * from topics where id = #{sub.to_sql}" @connection.exec_query(sql, 'SQL', binds) |