mirror of
https://github.com/django/django.git
synced 2025-06-15 08:29:11 +00:00
Refs #36419 -- Fixed BulkUpdateTests.test_json_field_sql_null() crash on Oracle.
Follow up to c1fa3fdd040718356e5a3b9a0fe699d73f47a940.
This commit is contained in:
parent
a68e8565cd
commit
f5441e42da
@ -3,7 +3,7 @@ from math import ceil
|
||||
|
||||
from django.core.exceptions import FieldDoesNotExist
|
||||
from django.db import connection
|
||||
from django.db.models import F
|
||||
from django.db.models import F, IntegerField, Value
|
||||
from django.db.models.functions import Coalesce, Lower
|
||||
from django.db.utils import IntegrityError
|
||||
from django.test import TestCase, override_settings, skipUnlessDBFeature
|
||||
@ -305,7 +305,11 @@ class BulkUpdateTests(TestCase):
|
||||
obj = JSONFieldNullable.objects.create(json_field={})
|
||||
test_cases = [
|
||||
("direct_none_assignment", None),
|
||||
("expression_none_assignment", Coalesce(None, None)),
|
||||
("value_none_assignment", Value(None)),
|
||||
(
|
||||
"expression_none_assignment",
|
||||
Coalesce(None, None, output_field=IntegerField()),
|
||||
),
|
||||
]
|
||||
for label, value in test_cases:
|
||||
with self.subTest(case=label):
|
||||
|
Loading…
x
Reference in New Issue
Block a user