• R
    Fix `relation.exists?` with giving both `distinct` and `offset` · 07dcd99a
    Ryuta Kamizono 提交于
    The `distinct` affects (reduces) rows of the result, so it is important
    part when both `distinct` and `offset` are given.
    
    Replacing SELECT clause to `1 AS one` and removing `distinct` and
    `order` is just optimization for the `exists?`, we should not apply the
    optimization for that case.
    
    Fixes #35191.
    07dcd99a
finder_test.rb 53.6 KB