Download & Extend

PostgreSQL: invalid GROUP BY with use of DISTINCT

Project:Site map
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:frjo
Status:closed (fixed)
Issue tags:patch, PostgreSQL

Issue Summary

Whenever you use a field in DISTINCT, it has to appear in the GROUP BY as well. That's a limit of SQL.

I've attached the patch for this little problem, but it looks bad and some things are missing when not correct.

Thank you.
Alexis Wilke

AttachmentSize
site_map-6.x-1.x.patch451 bytes

Comments

#1

Status:patch (to be ported)» needs review

Marked #269828: PostgreSQL patch as a duplicate of this issue.

#2

Assigned to:AlexisWilke» frjo
Status:needs review» fixed

Has been fixed in the latest 6-dev version.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here