• S
    Use bind values for joined tables in where statements · 10f75af9
    Sean Griffin 提交于
    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]
    10f75af9
author.rb 9.9 KB