1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

tag bind params with a bind param object

This commit is contained in:
Aaron Patterson 2012-02-20 18:16:56 -08:00
parent 563df87f19
commit f48a33be7d
3 changed files with 3 additions and 3 deletions

View file

@ -166,7 +166,7 @@ module ActiveRecord
# Returns a bind substitution value given a +column+ and list of current
# +binds+
def substitute_at(column, index)
Arel.sql '?'
Arel::Nodes::BindParam.new '?'
end
# REFERENTIAL INTEGRITY ====================================

View file

@ -66,7 +66,7 @@ module ActiveRecord
end
def substitute_at(column, index)
Arel.sql "\0"
Arel::Nodes::BindParam.new "\0"
end
# CONNECTION MANAGEMENT ====================================

View file

@ -721,7 +721,7 @@ module ActiveRecord
end
def substitute_at(column, index)
Arel.sql("$#{index + 1}")
Arel::Nodes::BindParam.new "$#{index + 1}"
end
class Result < ActiveRecord::Result