File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change 1
- from itertools import chain
2
-
3
1
from django .core .exceptions import EmptyResultSet , FullResultSet
4
2
from django .db import DatabaseError , IntegrityError , NotSupportedError
5
3
from django .db .models import Count , Expression
@@ -53,32 +51,6 @@ def execute_sql(
53
51
54
52
raise ValueError ("shouldn't get here" )
55
53
56
- def results_iter (
57
- self ,
58
- results = None ,
59
- tuple_expected = False ,
60
- chunked_fetch = False ,
61
- chunk_size = GET_ITERATOR_CHUNK_SIZE ,
62
- ):
63
- """
64
- Return an iterator over the results from executing query given
65
- to this compiler. Called by QuerySet methods.
66
-
67
- XXX: Can this method be removed?
68
- """
69
- if results is None :
70
- # QuerySet.values() or values_list()
71
- results = self .execute_sql (MULTI , chunked_fetch = chunked_fetch , chunk_size = chunk_size )
72
-
73
- fields = [s [0 ] for s in self .select [0 : self .col_count ]]
74
- converters = self .get_converters (fields )
75
- rows = chain .from_iterable (results )
76
- if converters :
77
- rows = self .apply_converters (rows , converters )
78
- if tuple_expected :
79
- rows = map (tuple , rows )
80
- return rows
81
-
82
54
def has_results (self ):
83
55
return bool (self .get_count (check_exists = True ))
84
56
You can’t perform that action at this time.
0 commit comments