mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
queryset-refactor: Fixed a crash when using extra(tables=...). Fixed #7045.
git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -634,5 +634,11 @@ True
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
IndexError: ...
|
||||
|
||||
Bug #7045 -- extra tables used to crash SQL construction on the second use.
|
||||
>>> qs = Ranking.objects.extra(tables=['django_site'])
|
||||
>>> s = qs.query.as_sql()
|
||||
>>> s = qs.query.as_sql() # test passes if this doesn't raise an exception.
|
||||
|
||||
"""}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user