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

Enable distinct_on with postgres_backend instead of postgres #3657

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

aumetra
Copy link
Contributor

@aumetra aumetra commented Jun 9, 2023

I noticed when working with QueryDsl that the method distinct_on is only available when Diesel is compiled with the postgres feature.
The trait this function is based on though is available when compiling the crate with postgres_backend.

This PR changes the cfg flag above the function declaration to postgres_backend.

The change shouldn't be breaking since the postgres feature enables the postgres_backend feature.

@weiznich weiznich requested a review from a team June 20, 2023 10:14
@weiznich weiznich added this pull request to the merge queue Jun 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 21, 2023
@weiznich weiznich added this pull request to the merge queue Jun 21, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 21, 2023
@weiznich weiznich added this pull request to the merge queue Jun 21, 2023
Merged via the queue into diesel-rs:master with commit 732497c Jun 21, 2023
weiznich added a commit to weiznich/diesel that referenced this pull request Aug 18, 2023
Enable `distinct_on` with `postgres_backend` instead of `postgres`
@weiznich weiznich mentioned this pull request Aug 18, 2023
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.

4 participants