Skip to content

Commit

Permalink
Switch aggrOrder to use OrderExpr' a instead of OrderExpr
Browse files Browse the repository at this point in the history
This means that expressions contained in `ORDER BY` clauses of aggregation functions are now also renamed by `extractAggregateFields`.
  • Loading branch information
shane-circuithub committed Oct 5, 2023
1 parent 83e0577 commit 11e3693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Opaleye/Internal/HaskellDB/PrimQuery.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type Aggr = Aggr' PrimExpr
data Aggr' a = Aggr
{ aggrOp :: !AggrOp
, aggrExprs :: ![a]
, aggrOrder :: ![OrderExpr]
, aggrOrder :: ![OrderExpr' a]
, aggrDistinct :: !AggrDistinct
, aggrFilter :: !(Maybe PrimExpr)
}
Expand Down

0 comments on commit 11e3693

Please sign in to comment.