Skip to content

Support Postgres' JSON_OBJECT function RETURNING clause #2000

@adamchainz

Description

@adamchainz

json_object() supports quite broad syntax:

json_object ( [ { key_expression { VALUE | ':' } value_expression
[ FORMAT JSON [ ENCODING UTF8 ] ] }[, ...] ] [ { NULL | ABSENT } ON NULL ]
[ { WITH | WITHOUT } UNIQUE [ KEYS ] ]
[ RETURNING data_type [ FORMAT JSON [ ENCODING UTF8 ] ] ])

#1545 added support for the VALUE keyword between values. I now need support for RETURNING JSONB, as used by Django on Postgres 16+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions