зеркало из https://github.com/mozilla/pjs.git
Patch for bug 253357: replace IFNULL with COALESCE for increased database compatibility; patch by Tomas Kopal <Tomas.Kopal@altap.cz>; r=vladd, a=justdave.
This commit is contained in:
Родитель
489b31f9cf
Коммит
9cf4bcc5d8
|
@ -143,7 +143,7 @@ sub initBug {
|
|||
reporter, bug_file_loc, short_desc, target_milestone,
|
||||
qa_contact, status_whiteboard,
|
||||
DATE_FORMAT(creation_ts,'%Y.%m.%d %H:%i'),
|
||||
delta_ts, ifnull(sum(votes.vote_count),0),
|
||||
delta_ts, COALESCE(SUM(votes.vote_count), 0),
|
||||
reporter_accessible, cclist_accessible,
|
||||
estimated_time, remaining_time
|
||||
from bugs left join votes using(bug_id),
|
||||
|
|
|
@ -317,7 +317,7 @@ sub GetBugActivity {
|
|||
}
|
||||
|
||||
my $query = "
|
||||
SELECT IFNULL(fielddefs.description, bugs_activity.fieldid),
|
||||
SELECT COALESCE(fielddefs.description, bugs_activity.fieldid),
|
||||
fielddefs.name,
|
||||
bugs_activity.attach_id,
|
||||
DATE_FORMAT(bugs_activity.bug_when,'%Y.%m.%d %H:%i'),
|
||||
|
|
|
@ -42,7 +42,7 @@ my $cgi = Bugzilla->cgi;
|
|||
my $generic_query = "
|
||||
SELECT
|
||||
bugs.bug_id,
|
||||
IFNULL(bugs.alias,''),
|
||||
COALESCE(bugs.alias, ''),
|
||||
products.name,
|
||||
bugs.version,
|
||||
bugs.rep_platform,
|
||||
|
|
Загрузка…
Ссылка в новой задаче