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

Always SET path = newValue instead of listAppend #101

Closed
wants to merge 1 commit into from

Conversation

haotianzhu
Copy link
Contributor

Issue #, if available:
Description of changes:

When we update one of list elements and append a new element, statement fails validation. It is because we try to modify list while append it. The fix is to simply SET path = new_list without checking elements in the list

For example

UPDATE "XXXXXXXXXX" SET "drmGroupKeyIds"[0]."drmKeyId"='nDsc1DwjQXOG6XVqTfKYdA==' SET "drmGroupKeyIds"[1]."drmKeyId"='XXXXXX==' SET "drmGroupKeyIds"=list_append("drmGroupKeyIds",[{'drmGroupName': 'UHD', 'contentQuality': 'UHD', 'drmKeyId': 'XXXXX=='}]) ......

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haotianzhu haotianzhu closed this Jan 19, 2024
@haotianzhu haotianzhu deleted the haotzhu branch January 19, 2024 07:27
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.

1 participant