diff options
author | mkanat%kerio.com <> | 2005-03-16 08:27:14 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-16 08:27:14 +0000 |
commit | b99cbd1d893ff0a730ab7187f409bcdf3c6f4aeb (patch) | |
tree | b2769bdde9c44eefd7834dcbc18e67e66d6d1aa9 /editmilestones.cgi | |
parent | Bug 284811 : Remove %FORM from enter_bug.cgi classification code (diff) | |
download | bugzilla-b99cbd1d893ff0a730ab7187f409bcdf3c6f4aeb.tar.gz bugzilla-b99cbd1d893ff0a730ab7187f409bcdf3c6f4aeb.tar.bz2 bugzilla-b99cbd1d893ff0a730ab7187f409bcdf3c6f4aeb.zip |
Bug 174295: ANSI SQL requires all columns in SELECT to be in GROUP BY, unless they are in "aggregate" functions
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=joel, a=myk
Diffstat (limited to 'editmilestones.cgi')
-rwxr-xr-x | editmilestones.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editmilestones.cgi b/editmilestones.cgi index e62dcc4cb..0edbd1897 100755 --- a/editmilestones.cgi +++ b/editmilestones.cgi @@ -310,8 +310,9 @@ if ($action eq 'del') { my $dbh = Bugzilla->dbh; my $sth = $dbh->prepare('SELECT count(bug_id), product_id, target_milestone - FROM bugs - GROUP BY product_id, target_milestone + FROM bugs ' . + $dbh->sql_group_by('product_id, + target_milestone') . ' HAVING product_id = ? AND target_milestone = ?'); |