PostgreSQL: invalid GROUP BY with use of DISTINCT

AlexisWilke - May 7, 2009 - 01:10
Project:Site map
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:frjo
Status:closed
Issue tags:patch, PostgreSQL
Description

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

#1

Dave Reid - July 1, 2009 - 13:23
Status:patch (to be ported)» needs review

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

#2

frjo - July 2, 2009 - 07:54
Assigned to:AlexisWilke» frjo
Status:needs review» fixed

Has been fixed in the latest 6-dev version.

#3

System Message - July 16, 2009 - 08:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.