Permalink
Browse files

Mark countDistinct as deprecated #1651

  • Loading branch information...
1 parent 5ccf97b commit bf2b0dbec9716724ccdaf602b2c8fd3afe9b9273 @frosforever frosforever committed Nov 17, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 slick/src/main/scala/slick/lifted/Query.scala
@@ -185,6 +185,7 @@ sealed abstract class Query[+E, U, C[_]] extends QueryBase[C[U]] { self =>
def size = length
/** The number of distinct elements of the query. */
+ @deprecated("Use `length` on `distinct` or `distinctOn` instead of `countDistinct`", "3.2")
def countDistinct: Rep[Int] = Library.CountDistinct.column(toNode)
/** Test whether this query is non-empty. */

0 comments on commit bf2b0db

Please sign in to comment.