balderdashy / waterline-sequel

A SQL generator for use in Waterline Adapters
MIT License
16 stars 61 forks source link

add DISTINCT when selecting via join table #13

Closed levity closed 10 years ago

levity commented 10 years ago

Hi, I think this is a fix for the issue I found here: https://gist.github.com/levity/02052edd445b68174c1e

But I've only just started using this library today, so I might be overlooking something important.

levity commented 10 years ago

Never mind, that's not going to work on account of the __-prefixed column in the select.