Opened 3 years ago

Last modified 7 months ago

#27808 closed Bug

Nested ArrayField with nullable base field generates invalid SQL — at Initial Version

Reported by: Josef Kolář Owned by:
Component: contrib.postgres Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When I have model

class NestedNullableIntegerArrayModel(PostgreSQLModel):
    field = ArrayField(ArrayField(models.IntegerField(null=True)))

and trying to save data

instance = NestedNullableIntegerArrayModel(field=[[None, None], [None, None]])

and Django generates

Error: Failed to load processor SQL
No macro or processor named 'SQL' found

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top