Commit 8a86df6a authored by jocuri%softhome.net's avatar jocuri%softhome.net

Bug 250591: Conversion of boolean conditions in SQL statements for better db…

Bug 250591: Conversion of boolean conditions in SQL statements for better db independence (take 2); patch by David Lawrence <dkl@redhat.com>; r=vladd, a=justdave.
parent b23a7f39
...@@ -81,7 +81,7 @@ sub queue { ...@@ -81,7 +81,7 @@ sub queue {
# should not have access. # should not have access.
" COUNT(DISTINCT ugmap.group_id) AS cntuseringroups, " COUNT(DISTINCT ugmap.group_id) AS cntuseringroups,
COUNT(DISTINCT bgmap.group_id) AS cntbugingroups, COUNT(DISTINCT bgmap.group_id) AS cntbugingroups,
((COUNT(DISTINCT ccmap.who) AND cclist_accessible = 1) ((COUNT(DISTINCT ccmap.who) > 0 AND cclist_accessible = 1)
OR ((bugs.reporter = $::userid) AND bugs.reporter_accessible = 1) OR ((bugs.reporter = $::userid) AND bugs.reporter_accessible = 1)
OR bugs.assigned_to = $::userid ) AS canseeanyway OR bugs.assigned_to = $::userid ) AS canseeanyway
" . " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment