Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of gigablah:
Presently, it's possible to do this using QueryBuilder:
->addOrderBy('u.name', 'ASC'); // duplicate
SELECT u.* FROM users u ORDER BY u.name ASC, u.name ASC
This patch removes duplicates from the SELECT, SET, ORDER BY and GROUP BY parts during SQL generation (there's already logic that removes duplicate FROM parts).
I've added test cases for each affected keyword as well.
Comment created by @beberlei:
A related Github Pull-Request [GH-277] was closed
Issue was closed with resolution "Invalid"
Comment created by @doctrinebot:
A related Github Pull-Request [GH-277] was closed: