drewolson/scrivener_ecto

`distinct on` requires a subquery for counting

tarzan opened this issue · 2 comments

This is probably an oversight in #64, but queries that have an DISTINCT ON clause (postgresql only) can not be counted on without a group_by. They need to be counted through a subquery.

I'll try the write a test for this...

got a fix in #73

Let me know what you think!

Merged #73, thanks!