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
eee11de7
Commit
eee11de7
authored
Oct 19, 2012
by
David Taylor
Committed by
Frédéric Buclin
Oct 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 780053: Oracle crashes when listing keywords, tags or flags in buglists
r/a=LpSolit
parent
91249c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
Oracle.pm
Bugzilla/DB/Oracle.pm
+13
-9
No files found.
Bugzilla/DB/Oracle.pm
View file @
eee11de7
...
...
@@ -109,7 +109,8 @@ sub bz_explain {
sub
sql_group_concat
{
my
(
$self
,
$text
,
$separator
)
=
@_
;
$separator
=
$self
->
quote
(
', '
)
if
!
defined
$separator
;
return
"group_concat(T_CLOB_DELIM($text, $separator))"
;
my
(
$distinct
,
$rest
)
=
$text
=~
/^(\s*DISTINCT\s|)(.+)$/i
;
return
"group_concat($distinct T_CLOB_DELIM(NVL($rest, ' '), $separator))"
;
}
sub
sql_regexp
{
...
...
@@ -524,14 +525,17 @@ sub bz_setup_database {
.
" RETURN NUMBER IS BEGIN RETURN LENGTH(COLUMN_NAME); END;"
);
# Create types for group_concat
my
$t_clob_delim
=
$self
->
selectcol_arrayref
(
"
SELECT TYPE_NAME FROM USER_TYPES WHERE TYPE_NAME=?"
,
undef
,
'T_CLOB_DELIM'
);
if
(
!
@$t_clob_delim
)
{
$self
->
do
(
"CREATE OR REPLACE TYPE T_CLOB_DELIM AS OBJECT "
.
"( p_CONTENT CLOB, p_DELIMITER VARCHAR2(256));"
);
}
$self
->
do
(
"DROP TYPE T_GROUP_CONCAT"
);
$self
->
do
(
"CREATE OR REPLACE TYPE T_CLOB_DELIM AS OBJECT "
.
"( p_CONTENT CLOB, p_DELIMITER VARCHAR2(256)"
.
", MAP MEMBER FUNCTION T_CLOB_DELIM_ToVarchar return VARCHAR2"
.
");"
);
$self
->
do
(
"CREATE OR REPLACE TYPE BODY T_CLOB_DELIM IS
MAP MEMBER FUNCTION T_CLOB_DELIM_ToVarchar return VARCHAR2 is
BEGIN
RETURN p_CONTENT;
END;
END;"
);
$self
->
do
(
"CREATE OR REPLACE TYPE T_GROUP_CONCAT AS OBJECT
( CLOB_CONTENT CLOB,
...
...
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