1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

Fixed #36430 -- Removed artificially low limit on single field bulk operations on SQLite.

This commit is contained in:
Jacob Walls
2025-06-03 21:43:50 -04:00
committed by Sarah Boyce
parent fb0d463b1f
commit a2ce4900a6
2 changed files with 3 additions and 7 deletions

View File

@@ -93,7 +93,8 @@ class SQLiteOperationsTests(TestCase):
first_name_field = Person._meta.get_field("first_name")
last_name_field = Person._meta.get_field("last_name")
self.assertEqual(
connection.ops.bulk_batch_size([first_name_field], [Person()]), 500
connection.ops.bulk_batch_size([first_name_field], [Person()]),
connection.features.max_query_params,
)
self.assertEqual(
connection.ops.bulk_batch_size(