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
d3bc9722
Commit
d3bc9722
authored
Jul 08, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 292768: [PostgreSQL] COALESCE requires both arguments to be of similar types
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, r=dkl, a=justdave
parent
0811ac92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
CGI.pl
CGI.pl
+7
-2
No files found.
CGI.pl
View file @
d3bc9722
...
...
@@ -262,8 +262,13 @@ sub GetBugActivity {
$suppwhere
=
"AND COALESCE(attachments.isprivate, 0) = 0"
;
}
my
$query
=
"
SELECT COALESCE(fielddefs.description, bugs_activity.fieldid),
fielddefs.name, bugs_activity.attach_id, "
.
SELECT COALESCE(fielddefs.description, "
# This is a hack - PostgreSQL requires both COALESCE
# arguments to be of the same type, and this is the only
# way supported by both MySQL 3 and PostgreSQL to convert
# an integer to a string. MySQL 4 supports CAST.
.
$dbh
->
sql_string_concat
(
'bugs_activity.fieldid'
,
q{''}
)
.
"), fielddefs.name, bugs_activity.attach_id, "
.
$dbh
->
sql_date_format
(
'bugs_activity.bug_when'
,
'%Y.%m.%d %H:%i:%s'
)
.
", bugs_activity.removed, bugs_activity.added, profiles.login_name
FROM bugs_activity
...
...
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