diff options
author | Melanie Gilman <melanie@thoughtbot.com> | 2014-10-31 16:02:07 -0400 |
---|---|---|
committer | Melanie Gilman <melanie@thoughtbot.com> | 2014-10-31 20:46:42 -0400 |
commit | 08579e4078454c6058f1289b58bf5bfa26661376 (patch) | |
tree | 41b2958554408ee559d9bcbefdf0a867b172ef77 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | |
parent | 45e8a4b6c9b0294c2fd7af1d6ddbde9c728321a9 (diff) | |
download | rails-08579e4078454c6058f1289b58bf5bfa26661376.tar.gz rails-08579e4078454c6058f1289b58bf5bfa26661376.tar.bz2 rails-08579e4078454c6058f1289b58bf5bfa26661376.zip |
Remove redundant substitute index when constructing bind values
We end up re-ordering them either way when we construct the Arel AST (in order
to deal with rewhere, etc), so we shouldn't bother giving it a number in the
first place beforehand.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index a0d9086875..96b7313234 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -267,7 +267,7 @@ module ActiveRecord # Returns a bind substitution value given a bind +index+ and +column+ # NOTE: The column param is currently being used by the sqlserver-adapter - def substitute_at(column, index) + def substitute_at(column, index = 0) Arel::Nodes::BindParam.new '?' end |