aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/code_statistics_test.rb
diff options
context:
space:
mode:
authorjvillarejo <arzivian87@gmail.com>2019-02-21 17:55:21 -0300
committerjvillarejo <arzivian87@gmail.com>2019-02-26 12:21:14 -0300
commitfa2c61fc636f958c274692f2a0f3062859797790 (patch)
treea54c83f40d283d735f57a93e460ff532d41dbf74 /railties/test/code_statistics_test.rb
parent588f97d76fabdf46211150f991c58d48e9fbf0ac (diff)
downloadrails-fa2c61fc636f958c274692f2a0f3062859797790.tar.gz
rails-fa2c61fc636f958c274692f2a0f3062859797790.tar.bz2
rails-fa2c61fc636f958c274692f2a0f3062859797790.zip
fixes different `count` calculation when using `size` manual `select` with DISTINCT
When using `select` with `'DISTINCT( ... )'` if you use method `size` on a non loaded relation it overrides the column selected by passing `:all` so it returns different value than count. This fixes #35214
Diffstat (limited to 'railties/test/code_statistics_test.rb')
0 files changed, 0 insertions, 0 deletions