Indefero

Indefero Commit Details


Date:2012-04-18 16:00:37 (12 years 8 months ago)
Author:Thomas Keller
Branch:develop, release-1.3
Commit:84d80af1ce6da885897b794f2941ee93ce547b10
Parents: d1542c9c001120a7f34afffba0eee960734e1e57
Message:Postgres seems to need every column in the group by, not only the PK.

Changes:

File differences

src/IDF/Tag.php
7676
7777
7878
79
7980
8081
8182
8283
8384
8485
85
86
8687
8788
8889
);
$table = $this->_con->pfx.'idf_project_idf_tag_assoc';
$cols = implode(', ', array_keys($this->_a['cols']));
$this->_a['views'] = array(
'join_projects' =>
array(
'join' => 'LEFT JOIN '.$table
.' ON idf_tag_id=id',
'select' => $this->getSelect().',COUNT(idf_project_id) as project_count',
'group' => 'id',
'group' => $cols,
'props' => array('project_count' => 'project_count'),
),
);

Archive Download the corresponding diff file

Page rendered in 0.07775s using 13 queries.