• S
    Expand the number of types which can use prepared statements · 3327cd3f
    Sean Griffin 提交于
    This will allow all types which require no additional handling to use
    prepared statements. Specifically, this will allow for `true`, `false`,
    `Date`, `Time`, and any custom PG type to use prepared statements. This
    also revealed another source of nil columns in bind params, and an
    inconsistency in their use.
    
    The specific inconsistency comes from a nested query coming from a
    through association, where one of the inversed associations is not
    bi-directional.
    
    The stop-gap is to simply construct the column at the site it is being
    used. This should simply go away on its own once we use `Attribute` to
    represent them instead, since we already have all of the information we
    need.
    3327cd3f
query_methods.rb 36.4 KB