1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.7.x] Fixed #23605 -- Fixed nested subquery regression

Added relabeled_clone() method to sql.Query to fix the problem. It
manifested itself in rare cases where at least double nested subquery's
filter condition might target non-existing alias.

Thanks to Trac alias ris for reporting the problem.

Backport of 5c481db295 from master
This commit is contained in:
Anssi Kääriäinen
2014-10-07 16:07:46 +03:00
committed by Tim Graham
parent 2e2607870d
commit 01f2cf2aec
5 changed files with 77 additions and 3 deletions

View File

@@ -71,3 +71,6 @@ Bugfixes
* Avoided unnecessary rollbacks of migrations from other apps when migrating
backwards (:ticket:`23410`).
* Fixed a rare query error when using deeply nested subqueries
(:ticket:`23605`).