Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c70ff104
Commit
c70ff104
authored
Mar 17, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 284125: PostgreSQL cannot call SUM on a boolean (Boolean Charts)
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
parent
763dc813
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Search.pm
Bugzilla/Search.pm
+2
-2
No files found.
Bugzilla/Search.pm
View file @
c70ff104
...
...
@@ -812,8 +812,8 @@ sub init {
# If the numbers are the same, all flags match the condition,
# so this bug should be included.
if
(
$t
=~
m/not/
)
{
push
(
@fields
,
"SUM(
$ff IS NOT NULL
) AS allflags_$chartid"
);
push
(
@fields
,
"SUM(
$term
) AS matchingflags_$chartid"
);
push
(
@fields
,
"SUM(
CASE WHEN $ff IS NOT NULL THEN 1 ELSE 0 END
) AS allflags_$chartid"
);
push
(
@fields
,
"SUM(
CASE WHEN $term THEN 1 ELSE 0 END
) AS matchingflags_$chartid"
);
push
(
@having
,
"allflags_$chartid = matchingflags_$chartid"
);
$term
=
"0=0"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment