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
3f8fe270
Commit
3f8fe270
authored
Oct 17, 2008
by
lpsolit%gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 455857: [Oracle] 'Find a Specific Bug' doesn't work - Patch by Xiaoou…
Bug 455857: [Oracle] 'Find a Specific Bug' doesn't work - Patch by Xiaoou <xiaoou.wu@oracle.com> r/a=mkanat
parent
50035ffc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
DB.pm
Bugzilla/DB.pm
+1
-0
Oracle.pm
Bugzilla/DB/Oracle.pm
+2
-1
Search.pm
Bugzilla/Search.pm
+4
-2
No files found.
Bugzilla/DB.pm
View file @
3f8fe270
...
...
@@ -52,6 +52,7 @@ use Storable qw(dclone);
use
constant
BLOB_TYPE
=>
DBI::
SQL_BLOB
;
use
constant
ISOLATION_LEVEL
=>
'REPEATABLE READ'
;
use
constant
GROUPBY_REGEXP
=>
'(?:.*\s+AS\s+)?(\w+(\.\w+)?)(?:\s+(ASC|DESC))?$'
;
# Set default values for what used to be the enum types. These values
# are no longer stored in localconfig. If we are upgrading from a
...
...
Bugzilla/DB/Oracle.pm
View file @
3f8fe270
...
...
@@ -52,6 +52,7 @@ use base qw(Bugzilla::DB);
use
constant
EMPTY_STRING
=>
'__BZ_EMPTY_STR__'
;
use
constant
ISOLATION_LEVEL
=>
'READ COMMITTED'
;
use
constant
BLOB_TYPE
=>
{
ora_type
=>
ORA_BLOB
};
use
constant
GROUPBY_REGEXP
=>
'((CASE\s+WHEN.+END)|(TO_CHAR\(.+\))|(\(SCORE.+\))|(\(MATCH.+\))|(\w+(\.\w+)?))(\s+AS\s+)?(.*)?$'
;
sub
new
{
my
(
$class
,
$user
,
$pass
,
$host
,
$dbname
,
$port
)
=
@_
;
...
...
@@ -80,7 +81,7 @@ sub new {
$self
->
do
(
"ALTER SESSION SET NLS_LENGTH_SEMANTICS='CHAR'"
)
if
Bugzilla
->
params
->
{
'utf8'
};
# To allow case insensitive query.
$self
->
do
(
"ALTER SESSION SET NLS_COMP='
LINGUISTIC
'"
);
$self
->
do
(
"ALTER SESSION SET NLS_COMP='
ANSI
'"
);
$self
->
do
(
"ALTER SESSION SET NLS_SORT='BINARY_AI'"
);
return
$self
;
}
...
...
Bugzilla/Search.pm
View file @
3f8fe270
...
...
@@ -802,8 +802,10 @@ sub init {
$field
=~
/^(relevance|actual_time|percentage_complete)/
);
# The structure of fields is of the form:
# [foo AS] {bar | bar.baz} [ASC | DESC]
# Only the mandatory part bar OR bar.baz is of interest
if
(
$field
=~
/(?:.*\s+AS\s+)?(\w+(\.\w+)?)(?:\s+(ASC|DESC))?$/i
)
{
# Only the mandatory part bar OR bar.baz is of interest.
# But for Oracle, it needs the real name part instead.
my
$regexp
=
$dbh
->
GROUPBY_REGEXP
;
if
(
$field
=~
/$regexp/i
)
{
push
(
@groupby
,
$1
)
if
!
grep
(
$_
eq
$1
,
@groupby
);
}
}
...
...
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