dbTalk Databases Forums  

[BUGS] BUG #2238: Query failed: ERROR

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2238: Query failed: ERROR in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
HOBY
 
Posts: n/a

Default [BUGS] BUG #2238: Query failed: ERROR - 02-04-2006 , 02:47 PM







The following bug has been logged online:

Bug reference: 2238
Logged by: HOBY
Email address: rabearison (AT) yahoo (DOT) fr
PostgreSQL version: 7.3.2
Operating system: Mandrake 9.1
Description: Query failed: ERROR
Details:

Warning: pg_query() [function.pg-query]: Query failed: ERROR: Attribute
unnamed_join.element must be GROUPed or used in an aggregate function . in
fiche.php on line 154.

Or in postgres 7.2 The same query works normally!

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2238: Query failed: ERROR - 02-04-2006 , 06:45 PM






"HOBY" <rabearison (AT) yahoo (DOT) fr> writes:
Quote:
Warning: pg_query() [function.pg-query]: Query failed: ERROR: Attribute
unnamed_join.element must be GROUPed or used in an aggregate function . in
fiche.php on line 154.
It's unlikely that we are going to be able to help when you didn't show
us the query or the table definitions. However, some browsing in the
CVS logs shows this 7.3.3 bug fix:

2003-04-03 13:04 tgl

* src/backend/parser/parse_agg.c (REL7_3_STABLE): Repair incorrect
checking of grouped/ungrouped variables in the presence of unnamed
joins; per pghackers discussion 31-Mar-03.

so my first advice is to update to something newer than 7.3.2 and see if
you still have a problem.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.