aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/isolation/abstract_unit.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-14 13:19:26 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-10-14 13:36:51 +0900
commit5668dc6b1863ef43be8f8ef0fb1d5db913085fb3 (patch)
tree0f46675c24941c36c97426ae6e71829b3f35406d /railties/test/isolation/abstract_unit.rb
parent3d1ff79742c46930fa35352c42fb585c3408511b (diff)
downloadrails-5668dc6b1863ef43be8f8ef0fb1d5db913085fb3.tar.gz
rails-5668dc6b1863ef43be8f8ef0fb1d5db913085fb3.tar.bz2
rails-5668dc6b1863ef43be8f8ef0fb1d5db913085fb3.zip
Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`
This is the fix for the regression of #29848. In #29848, I've kept existing select list in the subquery for the count if ORDER BY is given. But it had accidentally affect to GROUP BY queries also. It should keep the previous behavior in that case. Fixes #30886.
Diffstat (limited to 'railties/test/isolation/abstract_unit.rb')
0 files changed, 0 insertions, 0 deletions