Download & Extend

PostgreSQL requires all non-aggregated fields to be present in the GROUP BY clause

Project:Taxonomy Filter
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:solotandem
Status:closed (fixed)

Issue Summary

The error which is seen so often:
for PostgreSQL (and the SQL92 standard AFAIK), all non-aggregated fields must be present in the GROUP BY clause.
In the case of the query below, this is the case for the vid & name fields, and also for the 'weight' field which is in the 'ORDER BY'.

This is a very standard bugreport/patch and should have zero effect on MySQL.

AttachmentSizeStatusTest resultOperations
tf_psql.patch458 bytesIgnored: Check issue status.NoneNone

Comments

#1

Status:active» needs review

Forgot to set status. Though IMHO this patch should just be applied, not reviewed by 'the community'.

#2

Title:PostgreSQL error» PostgreSQL requires all non-aggregated fields to be present in the GROUP BY clause
Assigned to:Anonymous» solotandem
Status:needs review» fixed

Thanks for spotting this.

Fixed in next dev release created after this comment.

#3

Status:fixed» closed (fixed)

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