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

Add support for DISTINCT in STRING_AGG functions for PostgreSQL #1313

Closed
christxph opened this issue Aug 9, 2021 · 1 comment
Closed

Add support for DISTINCT in STRING_AGG functions for PostgreSQL #1313

christxph opened this issue Aug 9, 2021 · 1 comment

Comments

@christxph
Copy link

Hi,

Exposed does not support using the DISTINCT keyword in STRING_AGG functions for Postgres (groupConcat in Exposed) as it's explicitly disable in PostgreSQL.kt#L36:

expr.distinct -> tr.throwUnsupportedException("PostgreSQL doesn't support DISTINCT in STRING_AGG function.")

However, Postgres supports using DISTINCT in STRING_AGG functions for a while now (couldn't find the exact version).

Does anything speak against implementing this in Exposed?

Thanks.

@Tapac
Copy link
Contributor

Tapac commented Aug 12, 2021

Thank you for the info as I wasn't able to find such information in the official doc, also Order by clause is supported too.

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

No branches or pull requests

2 participants