0.12-stable: Follow-up to 10630, added a missing `DISTINCT`. The tests passed before, and I thought I had added some tests for this case, but I seem to be wrong.
Authored by: rblank 2011-03-05
Parent: [r10630]
Child: [r10632]