Kaydet (Commit) 0650bab4 authored tarafından Ian Kelly's avatar Ian Kelly

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
üst ee837ad4
...@@ -39,7 +39,7 @@ Second Revision of First Revision ...@@ -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)>]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment