aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/i18n.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-02-08 21:28:50 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-02-08 21:28:50 +0900
commit07dcd99a5a5b0ccbaa91e0d18e3b7b165fecffb1 (patch)
treece89b6445e4a9215992875cb447284614fb33c68 /activesupport/lib/active_support/i18n.rb
parent4cb1438b57067d637c79d49d0662c43b5b4e64c2 (diff)
downloadrails-07dcd99a5a5b0ccbaa91e0d18e3b7b165fecffb1.tar.gz
rails-07dcd99a5a5b0ccbaa91e0d18e3b7b165fecffb1.tar.bz2
rails-07dcd99a5a5b0ccbaa91e0d18e3b7b165fecffb1.zip
Fix `relation.exists?` with giving both `distinct` and `offset`
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.
Diffstat (limited to 'activesupport/lib/active_support/i18n.rb')
0 files changed, 0 insertions, 0 deletions