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:
parent
563df87f19
commit
f48a33be7d
3 changed files with 3 additions and 3 deletions
|
@ -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 ====================================
|
||||
|
|
|
@ -66,7 +66,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def substitute_at(column, index)
|
||||
Arel.sql "\0"
|
||||
Arel::Nodes::BindParam.new "\0"
|
||||
end
|
||||
|
||||
# CONNECTION MANAGEMENT ====================================
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue