Changeset 8052
- Timestamp:
- 07/22/08 02:37:09 (5 months ago)
- Files:
-
- django/trunk/django/db/models/sql/query.py (modified) (1 diff)
- django/trunk/tests/regressiontests/queries/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/models/sql/query.py
r8047 r8052 1617 1617 result = order_modified_iter(cursor, len(self.ordering_aliases), 1618 1618 self.connection.features.empty_fetchmany_value) 1619 result = iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)), 1620 self.connection.features.empty_fetchmany_value) 1619 else: 1620 result = iter((lambda: cursor.fetchmany(GET_ITERATOR_CHUNK_SIZE)), 1621 self.connection.features.empty_fetchmany_value) 1621 1622 if not self.connection.features.can_use_chunked_reads: 1622 1623 # If we are using non-chunked reads, we return the same data django/trunk/tests/regressiontests/queries/models.py
r7939 r8052 823 823 True 824 824 825 Bug #7791 -- there were "issues" when ordering and distinct-ing on fields 826 related via ForeignKeys. 827 >>> Note.objects.order_by('extrainfo__info').distinct() 828 [<Note: n3>, <Note: n1>, <Note: n2>] 829 825 830 """} 826 831
