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 Issue#1159: Server terminates for SET plus-equal #1207

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

Zainab-Saad
Copy link
Contributor

@Zainab-Saad Zainab-Saad commented Sep 5, 2023

This PR fixes the issue with alter_properties() (helper function used in SET clause) where while copying the original properties into the new agtype object, server terminated for non-scalar values in properties. As a fix, a function copy_agtype_value is added to recursively copy the original properties and deals with non-scalar values (object, array) cases.

- The previous implementation of alter_properties() in
  agtype.c while copying the original properties ignored
  non-scalar value cases, this PR fixes that
@github-actions github-actions bot added the PG14 PostgreSQL14 label Sep 5, 2023
@rafsun42 rafsun42 self-assigned this Sep 5, 2023
@rafsun42
Copy link
Member

rafsun42 commented Sep 5, 2023

@Zainab-Saad Could you send one for PG15 as well?

@rafsun42 rafsun42 merged commit 0d5d362 into apache:PG14 Sep 6, 2023
7 checks passed
@Zainab-Saad Zainab-Saad deleted the fix/PG14/set_plus_equal branch September 7, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG14 PostgreSQL14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants