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: only stringify JSON if insert value is an array containing plain object #5444

Closed

Conversation

minh-hoang-trinh
Copy link
Contributor

@minh-hoang-trinh minh-hoang-trinh commented Jan 13, 2023

Related to #5430 regression

The regression is introduced in PR follow from a feature requested 5320

this PR is to add an extra check for value, the check is now also check if the value is an array and containing at least one plain object.
the PR is trying to refine the feature implemented by @mingoing (rather than rollback the commit)

also add some tests heavily influenced by the PR from @loren138 (#5439)

@kibertoad
Copy link
Collaborator

Why was this closed?

@minh-hoang-trinh
Copy link
Contributor Author

minh-hoang-trinh commented Jan 15, 2023

@kibertoad, closed following the comment by @caseywebdev here #5430 (comment)

at the beginning I want to submit a PR to fix a regression introduced by #5320 in our codebase (cannot insert array of string to text array (the same as #5365)) but seem to me that my changes will not work with some other cases (#5430).

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.

None yet

2 participants