mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #28584 -- Dropped support for SQLite < 3.7.15.
This commit is contained in:
parent
51d230e00b
commit
27193aea00
7 changed files with 11 additions and 44 deletions
|
@ -5,7 +5,7 @@ from operator import attrgetter, itemgetter
|
|||
from uuid import UUID
|
||||
|
||||
from django.core.exceptions import FieldError
|
||||
from django.db import connection, models
|
||||
from django.db import models
|
||||
from django.db.models import F, Max, Min, Q, Sum, Value
|
||||
from django.db.models.expressions import Case, When
|
||||
from django.test import TestCase
|
||||
|
@ -296,12 +296,6 @@ class CaseExpressionTests(TestCase):
|
|||
transform=attrgetter('integer', 'test')
|
||||
)
|
||||
|
||||
if connection.vendor == 'sqlite' and connection.Database.sqlite_version_info < (3, 7, 0):
|
||||
# There is a bug in sqlite < 3.7.0, where placeholder order is lost.
|
||||
# Thus, the above query returns <condition_value> + <result_value>
|
||||
# for each matching case instead of <result_value> + 1 (#24148).
|
||||
test_combined_expression = unittest.expectedFailure(test_combined_expression)
|
||||
|
||||
def test_in_subquery(self):
|
||||
self.assertQuerysetEqual(
|
||||
CaseTestModel.objects.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue