silverstripe/sapphire — pull request #1841 by halkyon (2013-05-07 03:27:43+00:00)
Title: DataQuery::count() doesn't use SQLQuery::setDistinct() API

Remove hardcoded "DISTINCT" in SQL and use `setDistinct(true)` on SQLQuery instead which does the same thing, but using the API correctly.