1
0
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:
Malcolm Tredinnick
2008-04-23 10:43:42 +00:00
parent 42dc3b9ba2
commit 19d6bc7acd
2 changed files with 15 additions and 4 deletions

View File

@@ -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.
"""}