DistinctOnTests.setUp() breaks when DatabaseFeature.ignores_nulls_in_unique_constraints = True
|Reported by:||manfre||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Django-mssql doesn't implement can_distinct_on_fields, but the DistinctOnTests fail because the test setUp creates Celebrity records without specifying a value for a nullable field that has a unique constraint. Any database backend with ignores_nulls_in_unique_constraints = False will error on this setup, even if they would skip the tests.
I'm not in a position to run these tests to determine if the greatest_fan value can be set to something other than NULL.
Change History (6)
comment:1 Changed 10 months ago by manfre
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:5 Changed 10 months ago by Michael Manfre <mmanfre@…>
- Resolution set to fixed
- Status changed from new to closed