mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
[1.9.x] Fixed #26063 -- Crash when passing > 2000 params.
If SQLITE_MAX_VARIABLE_NUMBER (default = 999) is changed at compile time
to be greater than SQLITE_MAX_COLUMN (default = 2000), which Debian does
by setting the former to 250000, Django raised an exception on queries
containing more than 2000 parameters when DEBUG = True.
Backport of f91b5a7e4b
from master
This commit is contained in:
parent
05e8fa83c3
commit
cfe4ba6e90
3 changed files with 30 additions and 0 deletions
|
@ -44,3 +44,8 @@ Bugfixes
|
|||
|
||||
* Fixed a ``QuerySet.order_by()`` crash when ordering by a relational field of
|
||||
a ``ManyToManyField`` ``through`` model (:ticket:`26092`).
|
||||
|
||||
* Fixed a regression that caused an exception when making database queries on
|
||||
SQLite with more than 2000 parameters when :setting:`DEBUG` is ``True`` on
|
||||
distributions that increase the ``SQLITE_MAX_VARIABLE_NUMBER`` compile-time
|
||||
limit to over 2000, such as Debian (:ticket:`26063`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue