How to reproduce:
tox -e py39-postgres -- --settings=test_postgres
postgres_tests.test_array.TestQuerying
{{{
django.db.utils.DataError: invalid input syntax for type integer:
"{NULL,NULL}"
LINE 1: ...ullableintegerarraymodel"."field_nested" = (ARRAY['{NULL,NUL...
}}}
The error seems to be due to the query being generated as
{{{
...ARRAY['{NULL,NULL}']...
}}}
instead of
{{{
...ARRAY[ARRAY[NULL,NULL]]...
}}}
Note that the bug is not reproduced if at **least one** of the elements in
the nested array is **not null**.
--
Ticket URL: <https://code.djangoproject.com/ticket/34080>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.