aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authororekyuu <orekyuu@pixiv.com>2018-01-26 10:29:41 +0900
committerorekyuu <orekyuu@pixiv.com>2018-01-26 10:29:41 +0900
commitc9822ace4c8961336527670e7eef59093f515dfd (patch)
treef7b1f56ae2fb5013fa5dbcf70d0976c8fa74afad /activerecord/CHANGELOG.md
parentbbed4c32e469ee74718d5a9cc52792cb473700b9 (diff)
downloadrails-c9822ace4c8961336527670e7eef59093f515dfd.tar.gz
rails-c9822ace4c8961336527670e7eef59093f515dfd.tar.bz2
rails-c9822ace4c8961336527670e7eef59093f515dfd.zip
Fix not expanded problem when passing an Array object as argument to the where method using composed_of column.
Fixes #31723 ``` david_balance = customers(:david).balance Customer.where(balance: [david_balance]).to_sql # Before: WHERE `customers`.`balance` = NULL # After : WHERE `customers`.`balance` = 50 ```
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index af77eaae0e..12d9a15e63 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
+* Fix not expanded problem when passing an Array object as argument to the where method using composed_of column.
+
+ Fixes #31723
+
+ ```
+ david_balance = customers(:david).balance
+ Customer.where(balance: [david_balance]).to_sql
+
+ # Before: WHERE `customers`.`balance` = NULL
+ # After : WHERE `customers`.`balance` = 50
+ ```
+
+ *Yutaro Kanagawa*
+
* Fix `count(:all)` with eager loading and having an order other than the driving table.
Fixes #31783.