django/tests/queries
Simon Charette d35ce682e3 Fixed #33506 -- Made QuerySet.bulk_update() perform atomic writes against write database.
The lack of _for_write = True assignment in bulk_update prior to
accessing self.db resulted in the db_for_read database being used to
wrap batched UPDATEs in a transaction.

Also tweaked the batch queryset creation to also ensure they are
executed against the same database as the opened transaction under all
circumstances.

Refs #23646, #33501.
2022-02-09 11:14:50 +01:00
..
__init__.py
models.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_bulk_update.py Fixed #33506 -- Made QuerySet.bulk_update() perform atomic writes against write database. 2022-02-09 11:14:50 +01:00
test_contains.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_db_returning.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_explain.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_iterator.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_q.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_qs_combinators.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_query.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_sqlcompiler.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
tests.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00