Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kooskoos20 opened this issue Apr 29, 2024 · 0 comments
Open

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

kooskoos20 opened this issue Apr 29, 2024 · 0 comments

Comments

@kooskoos20
Copy link

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’,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant