aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-08-24 19:12:05 +0300
committerPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-09-13 16:37:10 +0300
commitfbbb6c87fd5e8fcd913c0dbf518024edd7538072 (patch)
tree0663c678b8a52e45de6eb2e86d8ead0d65fb543f /activerecord/CHANGELOG.md
parent97a19c6b4b71d1e12d62d880ec8c8eed357b3d3c (diff)
downloadrails-fbbb6c87fd5e8fcd913c0dbf518024edd7538072.tar.gz
rails-fbbb6c87fd5e8fcd913c0dbf518024edd7538072.tar.bz2
rails-fbbb6c87fd5e8fcd913c0dbf518024edd7538072.zip
Collapse where constraints to one where constraint
In order to remove duplication with joining arel where constraints with `AND`, all constraints on `build_arel` are collapsed into one head node: `Arel::Nodes::And` Closes: #11963
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index b79b9a87c6..38f8bfced9 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,11 @@
+* Fix: joins association, with defined in the scope block constraints by using several
+ where constraints and at least of them is not `Arel::Nodes::Equality`,
+ generates invalid SQL expression.
+
+ Fixes: #11963
+
+ *Paul Nikitochkin*
+
* Re-use `order` argument pre-processing for `reorder`.
*Paul Nikitochkin*