Skip to content

Conversation

dauinsight
Copy link
Contributor

Django 5.0 introduces 3 new constraint tests that fail with:

AssertionError: ValidationError not raised

In Django 4.1, we encountered tests that failed for the same reason and added them to the list of skipped tests:

Django 4.1 added a new function to CheckConstraint class which calls Q.check() which is also new. 

SQL generated by Q.check:

SELECT 1 AS [_check] FROM WHERE COALESCE((10 > (42)), True) = True

SQL server does not support booleans being used in SQL

coalesce class/function probably needs an `as_microsoft`.

@dauinsight dauinsight merged commit ff6a636 into django50 Oct 18, 2023
@mShan0 mShan0 deleted the skip-constraint-tests branch December 22, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants