-
Notifications
You must be signed in to change notification settings - Fork 467
Added the toStringList() function - Master #1084
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
M4rcxs
commented
Jul 24, 2023
- This function is inspired by the "tostringlist" function in OpenCypher.https://neo4j.com/docs/cypher-manual/current/functions/list/#functions-tostringlist
- toStringList() converts a list of values and returns a list of string values. If any values are not convertible to string they will be null in the list returned.
- A list containing the converted elements; depending on the input value a converted value is either a string value or null.
- Also added the regression tests
- This function is inspired by the "tostringlist" function in OpenCypher.https://neo4j.com/docs/cypher-manual/current/functions/list/#functions-tostringlist - toStringList() converts a list of values and returns a list of string values. If any values are not convertible to string they will be null in the list returned. - A list containing the converted elements; depending on the input value a converted value is either a string value or null. - Also added the regression tests
Contributor
|
@M4rcxs Please go back and correct all of toStringList, and related PRs. Please make sure you are compiling these locally with the correct flags. |
jrgemignani
added a commit
that referenced
this pull request
Aug 17, 2023
PR for moving the PG15 branch up to the current master branch. Contains all of the latest work in the master branch, which is currently at PostgreSQL version 15 at the time of this PR. When this PR is merged, PG15 will be the latest. Contains the following commits - * Added the toStringList() function (#1084) * Fix issue 1124: Segmentation fault when using specific tables (#1125) * Added the toStringList() function (#1128) * Fix issue 1000: Indexes created on WHERE (#1133)
MuhammadTahaNaveed
pushed a commit
to MuhammadTahaNaveed/age
that referenced
this pull request
Aug 24, 2023
- This function is inspired by the "tostringlist" function in OpenCypher.https://neo4j.com/docs/cypher-manual/current/functions/list/#functions-tostringlist - toStringList() converts a list of values and returns a list of string values. If any values are not convertible to string they will be null in the list returned. - A list containing the converted elements; depending on the input value a converted value is either a string value or null. - Also added the regression tests
ProjectMutilation
added a commit
to ProjectMutilation/age
that referenced
this pull request
Jan 21, 2026
Previously, when iterating through an agtype container, the code would access `elem->val` even when `elem` was null. This adds a null check to set the result type to AGTV_NULL when the element is null, preventing a potential segmentation fault. Fixes: 4274f10 ("Added the toStringList() function (apache#1084)") Found by PostgresPro. Signed-off-by: Maksim Korotkov <m.korotkov@postgrespro.ru>
ProjectMutilation
added a commit
to ProjectMutilation/age
that referenced
this pull request
Jan 21, 2026
Previously, when iterating through an agtype container, the code would access `elem->val` even when `elem` was null. This adds a null check to set the result type to AGTV_NULL when the element is null, preventing a potential segmentation fault. Fixes: 4274f10 ("Added the toStringList() function (apache#1084)") Found by PostgresPro. Signed-off-by: Maksim Korotkov <m.korotkov@postgrespro.ru>
ProjectMutilation
added a commit
to ProjectMutilation/age
that referenced
this pull request
Jan 21, 2026
Previously, when iterating through an agtype container, the code would access `elem->val` even when `elem` was null. This adds a null check to set the result type to AGTV_NULL when the element is null, preventing a potential segmentation fault. Fixes: 4274f10 ("Added the toStringList() function (apache#1084)") Found by PostgresPro. Signed-off-by: Maksim Korotkov <m.korotkov@postgrespro.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.