In #284392: db_rewrite_sql causing issues with DISTINCT, the patch committed to D6 fixed the broken implementation of db_distinct_field() for MySQL, and standardizes it's behavior between MySQL and Postgres.
The attached patch backports this fix to D5.
Why did I create a new issue for this? The other issue is 489 comments, with more and more inane 'subscribe' comments, new reports of the same bug, requests to have the patch backported to specific releases and other spam being added at an alarming rate. Any reasonable conversation is in danger of being buried under all of it.
|backport-db_distinct_field-changes-D5.patch||5.59 KB||Ignored: Check issue status.||None||None|