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
8bb3cb2a
Commit
8bb3cb2a
authored
Mar 17, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 286392: String concatenation on postgres does not always work
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
parent
27767372
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DB.pm
Bugzilla/DB.pm
+1
-1
Pg.pm
Bugzilla/DB/Pg.pm
+1
-1
No files found.
Bugzilla/DB.pm
View file @
8bb3cb2a
...
...
@@ -225,7 +225,7 @@ sub sql_group_by {
sub
sql_string_concat
{
my
(
$self
,
@params
)
=
@_
;
return
join
(
' || '
,
@params
)
;
return
'('
.
join
(
' || '
,
@params
)
.
')'
;
}
sub
sql_fulltext_search
{
...
...
Bugzilla/DB/Pg.pm
View file @
8bb3cb2a
...
...
@@ -137,7 +137,7 @@ sub sql_string_concat {
# Postgres 7.3 does not support concatenating of different types, so we
# need to cast both parameters to text. Version 7.4 seems to handle this
# properly, so when we stop support 7.3, this can be removed.
return
'
CAST('
.
join
(
' AS text) || CAST('
,
@params
)
.
' AS text
)'
;
return
'
(CAST('
.
join
(
' AS text) || CAST('
,
@params
)
.
' AS text)
)'
;
}
sub
bz_lock_tables
{
...
...
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