summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2015-05-05 14:44:33 +0300
committerTim Graham <timograham@gmail.com>2015-05-11 11:42:27 -0400
commitadc57632bc26cc8fe42bdb6aff463f883214980a (patch)
tree6dcf3ba58091af38a12197cf845f551728b95fe1 /docs
parentbe9d645346a20a6c394bf70d47b1b1d5c81ff530 (diff)
Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in some queries
When the query's model had a self-referential foreign key, the compiler.get_group_by() code incorrectly used the self-referential foreign key's column (for example parent_id) as GROUP BY clause when it should have used the model's primary key column (id).
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.2.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/1.8.2.txt b/docs/releases/1.8.2.txt
index f430eb6cb0..bf54aeefd4 100644
--- a/docs/releases/1.8.2.txt
+++ b/docs/releases/1.8.2.txt
@@ -17,3 +17,6 @@ Bugfixes
* Corrected join promotion for ``Case`` expressions. For example, annotating a
query with a ``Case`` expression could unexpectedly filter out results
(:ticket:`24766`).
+
+* Fixed incorrect GROUP BY clause generation on MySQL when the query's model
+ has a self-referential foreign key (:ticket:`24748`).