Opened 2 years ago

Last modified 2 years ago

#27808 new 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

Description

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]])
    instance.save()

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