Bug 285678: NOT(integer) not supported by postgres
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=myk git-svn-id: svn://10.0.0.236/trunk@170567 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3e282ac220
commit
b7fd576c4c
@ -304,7 +304,7 @@ sub GetBugActivity {
|
||||
if (Param("insidergroup") && !UserInGroup(Param('insidergroup'))) {
|
||||
$suppjoins = "LEFT JOIN attachments
|
||||
ON attachments.attach_id = bugs_activity.attach_id";
|
||||
$suppwhere = "AND NOT(COALESCE(attachments.isprivate,0))";
|
||||
$suppwhere = "AND COALESCE(attachments.isprivate, 0) = 0";
|
||||
}
|
||||
my $query = "
|
||||
SELECT COALESCE(fielddefs.description, bugs_activity.fieldid),
|
||||
|
||||
@ -339,7 +339,7 @@ unless ($action) {
|
||||
|
||||
my $query = "SELECT products.name,
|
||||
COALESCE(products.description,'') AS description,
|
||||
NOT(disallownew) AS status,
|
||||
disallownew = 0 AS status,
|
||||
votesperuser, maxvotesperbug, votestoconfirm,
|
||||
COUNT(bug_id) AS bug_count
|
||||
FROM products";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user