Fixed #28652 -- Fixed a few comments in django/db/models/*.
This commit is contained in:
parent
aba3467585
commit
5d9b736fd8
|
@ -256,7 +256,7 @@ class QuerySet:
|
|||
"""
|
||||
The queryset iterator protocol uses three nested iterators in the
|
||||
default case:
|
||||
1. sql.compiler:execute_sql()
|
||||
1. sql.compiler.execute_sql()
|
||||
- Returns 100 rows at time (constants.GET_ITERATOR_CHUNK_SIZE)
|
||||
using cursor.fetchmany(). This part is responsible for
|
||||
doing some column masking, and returning the rows in chunks.
|
||||
|
|
|
@ -1052,8 +1052,7 @@ class SQLCompiler:
|
|||
raise
|
||||
|
||||
if result_type == CURSOR:
|
||||
# Caller didn't specify a result_type, so just give them back the
|
||||
# cursor to process (and close).
|
||||
# Give the caller the cursor to process and close.
|
||||
return cursor
|
||||
if result_type == SINGLE:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue