Skip to content

Commit

Permalink
Try explicitly implementing FromClause<F> for HavingDsl<Predicate>
Browse files Browse the repository at this point in the history
  • Loading branch information
obsoleszenz committed Apr 18, 2024
1 parent b4776a3 commit 5d6637f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diesel/src/query_builder/select_statement/dsl_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,14 @@ where
}

impl<F, S, D, W, O, LOf, G, H, Predicate> HavingDsl<Predicate>
for SelectStatement<F, S, D, W, O, LOf, GroupByClause<G>, H>
for SelectStatement<FromClause<F>, S, D, W, O, LOf, GroupByClause<G>, H>
where
F: QuerySource,
Predicate: AppearsOnTable<F>,
Predicate: Expression,
Predicate::SqlType: BoolOrNullableBool,
{
type Output = SelectStatement<F, S, D, W, O, LOf, GroupByClause<G>, HavingClause<Predicate>>;
type Output = SelectStatement<FromClause<F>, S, D, W, O, LOf, GroupByClause<G>, HavingClause<Predicate>>;

fn having(self, predicate: Predicate) -> Self::Output {
SelectStatement::new(
Expand Down

0 comments on commit 5d6637f

Please sign in to comment.