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(