You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the group_concat function with the separator indicating an empty string ("") leads incorrectly to the default use of a space character as separator (" ").
Example code:
PREFIX : <http://example.org/>
SELECT ?subject (GROUP_CONCAT(?object; separator="") AS ?concatenatedObjects)
WHERE {
VALUES (?subject ?object) {
(:subject1 "a")
(:subject1 "b")
(:subject1 "c")
}
}
GROUP BY ?subject
Expected outcome for concatenatedObjects:
abc
Instead we get:
a b c
The text was updated successfully, but these errors were encountered:
floresbakker
changed the title
Separator in group_concat function with explicit empty string still defaults to 'space' character
Separator in group_concat function with explicit empty string incorrectly defaults to 'space' character
Jul 7, 2023
`GROUP_CONCAT` was handling an empty separator (i.e. `""`) incorrectly,
it would handle it as if the separator were not set, so essentially it was
treated as a single space (i.e. `" "`).
This change fixes it so that an empty separator with `GROUP_CONCAT`
results in a value with nothing between concatenated values.
Fixes <#2473>
---------
Co-authored-by: WhiteGobo <richardfechner@posteo.net>
Using the group_concat function with the separator indicating an empty string ("") leads incorrectly to the default use of a space character as separator (" ").
Example code:
Expected outcome for concatenatedObjects:
abc
Instead we get:
a b c
The text was updated successfully, but these errors were encountered: