#34840: Django 4.2 casts text fields when testing IS NULL, preventing use of partial indexes -------------------------------------+------------------------------------- Reporter: Alex Vandiver | Owner: murtatah Type: Bug | Status: assigned Component: Database layer | Version: 4.2 (models, ORM) | Severity: Release blocker | Resolution: Keywords: | Triage Stage: Ready for | checkin Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by murtatah): fix: Correct value format for CharArrayModel in test_isnull_lookup_cast In the test_isnull_lookup_cast method, the CharArrayModel instance was created with an incorrect value format for the 'field' attribute. This caused a PostgreSQL error when trying to create the instance. This commit fixes the issue by using a list to represent an array and encloses the value properly in curly braces, ensuring the correct format for the 'field' attribute.i made some test check the status of it. -- Ticket URL: <https://code.djangoproject.com/ticket/34840#comment:13> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018aa2410ed4-e2ad612b-0206-417e-97ed-e10b743db6db-000000%40eu-central-1.amazonses.com.