aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
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 /activerecord/CHANGELOG.md
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 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 77cb167e7c..c8fa387b42 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,9 @@
+* Fix different `count` calculation when using `size` with manual `select` with DISTINCT.
+
+ Fixes #35214.
+
+ *Juani Villarejo*
+
## Rails 6.0.0.beta2 (February 25, 2019) ##
* Fix prepared statements caching to be enabled even when query caching is enabled.