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:
		
				
					committed by
					
						 Tim Graham
						Tim Graham
					
				
			
			
				
	
			
			
			
						parent
						
							2e2607870d
						
					
				
				
					commit
					01f2cf2aec
				
			| @@ -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`). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user