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
Sean Griffin 10f75af933 Use bind values for joined tables in where statements
In practical terms, this allows serialized columns and tz aware columns
to be used in wheres that go through joins, where they previously would
not behave correctly. Internally, this removes 1/3 of the cases where we
rely on Arel to perform type casting for us.

There were two non-obvious changes required for this. `update_all` on
relation was merging its bind values with arel's in the wrong order.
Additionally, through associations were assuming there would be no bind
parameters in the preloader (presumably because the where would always
be part of a join)

[Melanie Gilman & Sean Griffin]
2014-11-01 15:39:51 -06:00
..
active_record Use bind values for joined tables in where statements 2014-11-01 15:39:51 -06:00
rails/generators Merge pull request #16062 from sgrif/sg-required-generators 2014-08-17 22:57:21 -03:00
active_record.rb Revert "Revert "Merge pull request #16059 from jenncoop/json-serialized-attr"" 2014-07-15 08:43:18 -07:00