]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 285678: NOT(integer) not supported by postgres
authormkanat%kerio.com <>
Sat, 12 Mar 2005 03:06:11 +0000 (03:06 +0000)
committermkanat%kerio.com <>
Sat, 12 Mar 2005 03:06:11 +0000 (03:06 +0000)
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=myk

CGI.pl
editproducts.cgi

diff --git a/CGI.pl b/CGI.pl
index 8d42eb4cc8d3650862507b07c944e17012ab5757..31ed48e3d400da2c1b6e2c722685cee6af45679c 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -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),
index db391228bf65ae799be98285fc3a8f09b0a135e1..ea4bc5e5bdd986429f02e2b456d64fb2f0514e0a 100755 (executable)
@@ -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";