Skip to content

Commit

Permalink
Enable feature flag for SupportsCombinationClause for postgres_backend
Browse files Browse the repository at this point in the history
I found that I couldn't compile queries that contained union and union_all expressions with the `postgres` feature flag turned replaced with `postgres_backend` while switching to `diesel-async`.
I believe that this is a simple change to allow use of the `CombineDSL` trait with just the `postgres_backend` feature.
  • Loading branch information
hgzimmerman authored Oct 23, 2023
1 parent 7042083 commit 672b0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diesel/src/query_builder/combination_clause.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub trait SupportsCombinationClause<Combinator, Rule> {}
/// Wrapper used to wrap rhs sql in parenthesis when supported by backend
pub struct ParenthesisWrapper<T>(T);

#[cfg(feature = "postgres")]
#[cfg(feature = "postgres_backend")]
mod postgres {
use super::*;
use crate::pg::Pg;
Expand Down

0 comments on commit 672b0e4

Please sign in to comment.