Skip to content

Commit

Permalink
Fixed #28652 -- Fixed a few comments in django/db/models/*.
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and timgraham committed Oct 2, 2017
1 parent aba3467 commit 5d9b736
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django/db/models/query.py
Expand Up @@ -256,7 +256,7 @@ def __iter__(self):
"""
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.
Expand Down Expand Up @@ -438,7 +438,7 @@ def bulk_create(self, objs, batch_size=None):
# insert into the childmost table.
# We currently set the primary keys on the objects when using
# PostgreSQL via the RETURNING ID clause. It should be possible for
# Oracle as well, but the semantics for extracting the primary keys is
# Oracle as well, but the semantics for extracting the primary keys is
# trickier so it's not done yet.
assert batch_size is None or batch_size > 0
# Check that the parents share the same concrete model with the our
Expand Down
3 changes: 1 addition & 2 deletions django/db/models/sql/compiler.py
Expand Up @@ -1052,8 +1052,7 @@ def execute_sql(self, result_type=MULTI, chunked_fetch=False, chunk_size=GET_ITE
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:
Expand Down

0 comments on commit 5d9b736

Please sign in to comment.