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 #1211

Closed
wants to merge 1 commit into from

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 PG15 PostgreSQL15 label Sep 5, 2023
@jrgemignani
Copy link
Contributor

@Zainab-Saad Please provide a description above.

@Zainab-Saad
Copy link
Contributor Author

@jrgemignani
Done

@rafsun42
Copy link
Member

rafsun42 commented Sep 6, 2023

@Zainab-Saad Closing it because it is already merged in master, which is on PG15. Sorry for not clarifying it before.

@rafsun42 rafsun42 closed this Sep 6, 2023
@Zainab-Saad Zainab-Saad deleted the fix/PG15/set_plus_equal branch September 6, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG15 PostgreSQL15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants