Skip to content

FIX: pgsql: cast string_agg arguments #34210

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 4 commits into from
Jun 4, 2025

Conversation

marc-dll
Copy link
Contributor

FIX: pgsql: cast string_agg arguments

When converting MySQL/MariaDB GROUP_CONCAT calls to PostgreSQL STRING_AGG, an error occurs because of incorrect argument types (the literal ',' that is added if no SEPARATOR is given in the original call is of type unknown, for example).

STRING_AGG takes either (TEXT, TEXT) or (BYTEA, BYTEA) arguments (see https://www.postgresql.org/docs/12/functions-aggregate.html), therefore, I propose casting to TEXT.

lvessiller-opendsi and others added 3 commits May 12, 2025 20:09
…t of module barcode (Dolibarr#34170)

* FIX: product suplier tab: last modif date column was wrongly dependant of module barcode

* FIX: product suplier tab: last modif date column was wrongly dependant of module barcode, part 2
@marc-dll
Copy link
Contributor Author

I didn't see at first that a phpunit test existed, I modified it accordingly.

@eldy eldy changed the base branch from 18.0 to develop May 27, 2025 18:27
@eldy eldy merged commit d5250ea into Dolibarr:develop Jun 4, 2025
7 checks passed
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