Skip to content

Nil byte array doesn't get saved as JSONB field #1159

Open
@kooskoos20

Description

@kooskoos20

When you try to assign a nil byte array to JSONB field it returns an error. It works fine when byte array is not nil.

var byteArray []byte _, err := c.db.Exec(query, byteArray)

The above code fails with errorCode: ‘22P02’,

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