on master help sign in
Upgrade countDistinct to work on any Sql DBEq a
commit8bdfd0b34c7555396df128f814e4e907a6bc9440 authorOllie Charles <ollie@ocharles.org.uk> dateThu 25 Mar 2021, 10:56 (6 years ago) parent0b34a14
1 file changed+1−1
src/Rel8/Expr/Aggregate.hs+1−1
src/Rel8/Expr/Aggregate.hs+1−1
@@ -58,7 +58,7 @@ count = unsafeMakeAggregate toPrimExpr fromPrimExpr $
5858
5959-- | Count the number of distinct occurances of a single column. Corresponds to
6060-- @COUNT(DISTINCT a)@
61−countDistinct :: DBEq a => Expr a -> Aggregate (Expr Int64)
61+countDistinct :: Sql DBEq a => Expr a -> Aggregate (Expr Int64)
6262countDistinct = unsafeMakeAggregate toPrimExpr fromPrimExpr $
6363 Just Aggregator
6464 { operation = Opaleye.AggrCount