aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-17 14:56:06 -0800
committerSean Griffin <sean@thoughtbot.com>2014-11-17 14:57:01 -0800
commitc01b20b658c9fe4b7d54f4a227a09cb090b5763d (patch)
treedb37ae6eefdff0029671d258ca5a4a6c71a1ae55 /activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
parentbf149679f426c1f6d3e5d280ed19b42f62c9b33f (diff)
downloadrails-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/lib/active_record/connection_adapters/postgresql/database_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
index cf379ab210..d09468329a 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
@@ -156,10 +156,6 @@ module ActiveRecord
end
end
- def substitute_at(column, index = 0)
- Arel::Nodes::BindParam.new "$#{index + 1}"
- end
-
def exec_query(sql, name = 'SQL', binds = [])
execute_and_clear(sql, name, binds) do |result|
types = {}