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

fix: reverted json/jsonb changes introduced in 0.3.1 #8777

Merged
merged 1 commit into from Mar 22, 2022

Conversation

pleerock
Copy link
Member

@pleerock pleerock commented Mar 22, 2022

I have to revert breaking changes introduced in #8766

My assumptions were wrong regarding on how json/jsonb arrays work in postgres.
Also I faced issue that node-pg (underlying package used by TypeORM for postgres support) doesn't really plays well with JSON arrays, so we must call JSON.stringify to properly support all JSON use cases (see brianc/node-postgres#374 and brianc/node-postgres#442) for more details.

So, this change reverts all breaking changes introduced in 0.3.1 back to how they were in 0.3.0 and earlier versions.

fixes #8772

@pleerock pleerock merged commit edf27d9 into master Mar 22, 2022
@pleerock pleerock deleted the jsonb-array-issues branch March 22, 2022 18:04
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

Successfully merging this pull request may close these issues.

0.3.1: Cannot update JSONB array fields, invalid input syntax
1 participant