diff options
author | Daniel Hahler <git@thequod.de> | 2016-11-24 14:16:39 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-25 07:50:59 -0500 |
commit | eb42d8d5d9b0968ce12d09760afff684bee56a3a (patch) | |
tree | 646b79f656be427998dc4e0e8d4fd353a584275a /django/db/backends/sqlite3/operations.py | |
parent | c238da894216458bb548b039a754844d44f3cd80 (diff) | |
download | django-eb42d8d5d9b0968ce12d09760afff684bee56a3a.tar.gz |
Fixed grammar in sqlite's DatabaseOperations.bulk_batch_size()'s docstring.
Diffstat (limited to 'django/db/backends/sqlite3/operations.py')
-rw-r--r-- | django/db/backends/sqlite3/operations.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index 57c65a366e..ad6b2a5a2a 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -20,8 +20,8 @@ class DatabaseOperations(BaseDatabaseOperations): SQLite has a compile-time default (SQLITE_LIMIT_VARIABLE_NUMBER) of 999 variables per query. - If there is just single field to insert, then we can hit another - limit, SQLITE_MAX_COMPOUND_SELECT which defaults to 500. + If there's only a single field to insert, the limit is 500 + (SQLITE_MAX_COMPOUND_SELECT). """ limit = 999 if len(fields) > 1 else 500 return (limit // len(fields)) if len(fields) > 0 else len(objs) |