1
0
mirror of https://github.com/django/django.git synced 2025-01-27 10:39:40 +00:00
Simon Charette 3434dbd39d Fixed #34754 -- Fixed JSONField check constraints validation on NULL values.
The __isnull lookup of JSONField must special case
Value(None, JSONField()) left-hand-side in order to be coherent with
its convoluted null handling.

Since psycopg>=3 offers no way to pass a NULL::jsonb the issue is
resolved by optimizing IsNull(Value(None), True | False) to
True | False.

Regression in 5c23d9f0c32f166c81ecb6f3f01d5077a6084318.

Thanks Alexandre Collet for the report.
2023-08-04 10:14:03 +02:00
..
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-07-21 12:54:38 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-09-05 05:21:23 +02:00
2022-11-01 06:54:19 +01:00
2022-12-06 09:56:43 +01:00
2023-01-02 08:10:59 +01:00
2023-04-05 06:09:31 +02:00
2023-06-05 08:21:56 -03:00
2023-08-01 13:30:05 -03:00
2023-08-01 14:52:36 -03:00