Skip to content

Conversation

@labkey-nicka
Copy link
Contributor

Rationale

With #7152 I introduced use of string_agg() into the generated group concatenation SQL on PostgreSQL. There are a couple of test failures that indicated I had not properly accounted for handling of null values. This fixes that by doing coalescing as empty string.

Related Pull Requests

Changes

  • More explicitly separate the array_to_string(array_agg()) path from the string_agg() path.

@labkey-matthewb
Copy link
Contributor

We've had problems with that before (this has been worked on by different developers). Is there an easy way to write a junit test for this? I might be a pain if it requires creating real tables to test.

@labkey-nicka labkey-nicka merged commit 0674b76 into develop Nov 10, 2025
12 checks passed
@labkey-nicka labkey-nicka deleted the fb_string_agg_fix branch November 10, 2025 22:44
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.

3 participants