Project

General

Profile

Anomalie #430

Erreur de récupération des groupes avec postgresql

Added by Laurent Pelecq almost 7 years ago. Updated almost 7 years ago.

Status:
Fermé
Priority:
Normal
Category:
Base de données
Target version:
-
Start date:
12/02/2012
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

Description

Sur une nouvelle install 0.7.2.2 avec postgresql 8.4, on ne peut pas obtenir la liste des groupes. On obtient le message :

2012-12-02 17:58:55 - WARN --> Cannot list groups | SQLSTATE[42803]: Grouping 
error: 7 ERREUR:  la colonne « a.group_name » doit apparaître dans la clause 
GROUP BY ou doit être utilisé dans une fonction d'agrégat
LIGNE 1 : SELECT "a".*, count(b.id_group) AS "members" FROM "galette_g...
2012-12-02 17:58:55 - ERROR --> Query was: SELECT "a".*, count(b.id_group) AS 
"members" FROM "galette_groups" AS "a" 
 LEFT JOIN "galette_groups_members" AS "b" ON a.id_group=b.id_group WHERE 
(parent_group IS NULL) GROUP BY "a"."id_group" ORDER BY "group_name" ASC #0 
/var/www/galette/galette-0.7.2.2/galette/includes/Zend-1.11.11/Zend/Db/Statement.php(300):
 Zend_Db_Statement_Pdo->_execute(Array)

Associated revisions

Revision 584459c5 (diff)
Added by Johan Cwiklinski almost 7 years ago

Incorrect groupBy for Postgres 8.4; fixes #430

History

#1

Updated by Johan Cwiklinski almost 7 years ago

  • Status changed from Nouveau to In Progress
#2

Updated by Johan Cwiklinski almost 7 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
#3

Updated by Johan Cwiklinski almost 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF