django/tests/composite_pk
Simon Charette 192bc7a7be
Some checks are pending
Docs / docs (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Fixed #36464 -- Fixed "__in" tuple lookup on backends lacking native support.
When native support for tuple lookups is missing in a DB backend, it can
be emulated with an EXISTS clause. This is controlled by the backend
feature flag "supports_tuple_lookups".

The mishandling of subquery right-hand side in `TupleIn` (added to
support `CompositePrimaryKey` in Refs #373) was likely missed because
the only core backend we test with the feature flag disabled
(Oracle < 23.4) supports it natively.

Thanks to Nandana Raol for the report, and to Sarah Boyce, Jacob Walls,
and Natalia Bidart for reviews.
2025-06-30 20:15:25 -03:00
..
fixtures Refs #36075 -- Used field in pk_fields over field.primary_key. 2025-01-13 12:04:59 +01:00
models Fixed #36373 -- Fixed select_related() crash on foreign object for a composite pk. 2025-05-12 12:33:07 +01:00
__init__.py Fixed #373 -- Added CompositePrimaryKey. 2024-11-29 11:23:04 +01:00
test_aggregate.py Refs #36042 -- Consolidated composite expression checks in BaseExpression. 2025-01-22 08:56:18 +01:00
test_checks.py Fixed #36092 -- Disallowed non-local fields in composite primary keys. 2025-01-13 14:21:41 +01:00
test_create.py Fixed #36064 -- Skipped an UPDATE when adding a model instance with a composite primary key with default values. 2025-01-10 11:43:38 +01:00
test_delete.py Fixed #373 -- Added CompositePrimaryKey. 2024-11-29 11:23:04 +01:00
test_filter.py Fixed #36464 -- Fixed "__in" tuple lookup on backends lacking native support. 2025-06-30 20:15:25 -03:00
test_get.py Fixed #36100 -- Checked if composite pk is set in get_next/get_previous. 2025-01-15 17:23:46 +01:00
test_models.py Refs #36075 -- Used field in pk_fields over field.primary_key. 2025-01-13 12:04:59 +01:00
test_names_to_path.py Fixed #373 -- Added CompositePrimaryKey. 2024-11-29 11:23:04 +01:00
test_order_by.py Fixed #36065 -- Fixed ordering by expression referencing composite primary key. 2025-01-08 10:20:48 +01:00
test_update.py Fixed #36122 -- Raised FieldError when updating with composite reference value. 2025-01-28 12:05:53 +00:00
test_values.py Fixed #36288 -- Addressed improper handling of duplicates in values_list(). 2025-04-11 09:04:49 +02:00
tests.py Fixed #36416 -- Made QuerySet.in_bulk() account for composite pks in id_list. 2025-06-03 18:45:15 +03:00