Fixed a test case using extra sql that didnt fit Oracle syntax.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ian Kelly 2008-07-03 19:02:43 +00:00
parent ee837ad46a
commit 0650bab492
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ Second Revision of First Revision
(2, 1) (2, 1)
Queryset to match most recent revision: Queryset to match most recent revision:
>>> qs = RevisionableModel.objects.extra(where=["%(table)s.id IN (SELECT MAX(rev.id) FROM %(table)s AS rev GROUP BY rev.base_id)" % {'table': RevisionableModel._meta.db_table,}],) >>> qs = RevisionableModel.objects.extra(where=["%(table)s.id IN (SELECT MAX(rev.id) FROM %(table)s rev GROUP BY rev.base_id)" % {'table': RevisionableModel._meta.db_table,}],)
>>> qs >>> qs
[<RevisionableModel: Second Revision (2, 1)>] [<RevisionableModel: Second Revision (2, 1)>]