1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/relation
Sean Griffin 04d1c3716b Fix bind value copying from subqueried relations
With the old implementation, the bind values were created, and then we
search the attributes for `Relation` objects, and merge them. This
completely ignores the order that the actual `where` clause will use. If
all non-relation where parameters are before the relations, it will
work. However, if we query on both a relation and a value, with the
value coming second, it breaks. The order of the hash should not affect
the final query (especially since hashes being ordered is an
implementation detail)
2015-01-19 15:19:43 -07:00
..
predicate_builder Remove unneeded requires 2015-01-04 12:11:03 -03:00
batches.rb Remove all cases of manuallly wrapping Arel::Nodes::Quoted 2014-12-29 11:21:56 -07:00
calculations.rb Remove support to activerecord-deprecated_finders 2015-01-02 12:06:24 -03:00
delegation.rb Remove unneeded require 'as/deprecation' 2015-01-04 07:45:07 -08:00
finder_methods.rb Go through normal where logic in apply_join_dependency 2014-12-26 17:02:40 -07:00
merger.rb Inject the PredicateBuilder into the Relation instance 2014-12-26 13:53:56 -07:00
predicate_builder.rb Fix bind value copying from subqueried relations 2015-01-19 15:19:43 -07:00
query_methods.rb Fix bind value copying from subqueried relations 2015-01-19 15:19:43 -07:00
spawn_methods.rb Inject the PredicateBuilder into the Relation instance 2014-12-26 13:53:56 -07:00