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 Dec 30, 2023
1 parent fb34be0 commit 2b54fc4
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 2b54fc4

Please sign in to comment.