Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tag bind params with a bind param object

  • Loading branch information...
commit a566ee5308023f1a0ea9c06e7b1b2f70cef85c87 1 parent c73f883
Aaron Patterson tenderlove authored
2  activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
View
@@ -158,7 +158,7 @@ def quote_table_name(name)
# 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 ====================================
2  activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
View
@@ -66,7 +66,7 @@ def quote_string(string)
end
def substitute_at(column, index)
- Arel.sql "\0"
+ Arel::Nodes::BindParam.new "\0"
end
# CONNECTION MANAGEMENT ====================================
2  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
@@ -642,7 +642,7 @@ def execute(sql, name = nil)
end
def substitute_at(column, index)
- Arel.sql("$#{index + 1}")
+ Arel::Nodes::BindParam.new "$#{index + 1}"
end
def exec_query(sql, name = 'SQL', binds = [])
Please sign in to comment.
Something went wrong with that request. Please try again.