Indefero

Indefero Commit Details


Date:2011-06-15 06:52:58 (13 years 6 months ago)
Author:William MARTIN
Branch:develop, feature.content-md5, feature.diff-whitespace, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:5427aab4569cd7c974bc86b54915ce1ae56e1bb7
Parents: dab8ea63fc4651f497f0329b567f383020a2ef0c
Message:Change "ifnull" sql function to "coalesce" which is supported by postgresql

Changes:

File differences

src/IDF/Views/Issue.php
109109
110110
111111
112
112
113113
114114
115115
$sqlUsersTable = Pluf::factory('Pluf_User')->getSqlTable();
$otags = implode(',', $prj->getTagIdsByStatus('open'));
$query = <<<"QUERY"
SELECT CONCAT(first_name, " ", last_name) as name, nb FROM (SELECT uid as id,count(uid) as nb FROM (SELECT ifnull(owner, -1) as uid FROM $sqlIssueTable WHERE status IN ($otags)) as ff group by uid) AS ff LEFT JOIN $sqlUsersTable using(id)
SELECT CONCAT(first_name, " ", last_name) as name, nb FROM (SELECT uid as id,count(uid) as nb FROM (SELECT coalesce(owner, -1) as uid FROM $sqlIssueTable WHERE status IN ($otags)) as ff group by uid) AS ff LEFT JOIN $sqlUsersTable using(id)
QUERY;
$db = Pluf::db();
$dbData = $db->select($query);

Archive Download the corresponding diff file

Page rendered in 0.08338s using 13 queries.