• S
    Fix bind value copying from subqueried relations · 04d1c371
    Sean Griffin 提交于
    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)
    04d1c371
query_methods.rb 36.4 KB