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
9ed763d9
Commit
9ed763d9
authored
Jun 30, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 421064: [Oracle] whine.pl crashes and doesn't work
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
parent
0a566f92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
Oracle.pm
Bugzilla/DB/Oracle.pm
+15
-4
No files found.
Bugzilla/DB/Oracle.pm
View file @
9ed763d9
...
...
@@ -171,8 +171,11 @@ sub sql_date_format {
sub
sql_interval
{
my
(
$self
,
$interval
,
$units
)
=
@_
;
return
"INTERVAL "
.
$self
->
quote
(
$interval
)
.
" $units"
;
if
(
$units
=~
/YEAR|MONTH/i
)
{
return
"NUMTOYMINTERVAL($interval,'$units')"
;
}
else
{
return
"NUMTODSINTERVAL($interval,'$units')"
;
}
}
sub
sql_position
{
...
...
@@ -490,7 +493,7 @@ sub bz_setup_database {
}
package
Bugzilla::DB::Oracle::
st
;
use
base
qw(DB
D::Oracle
::st)
;
use
base
qw(DB
I
::st)
;
sub
fetchrow_arrayref
{
my
$self
=
shift
;
...
...
@@ -545,5 +548,13 @@ sub fetchall_hashref {
}
return
$ref
;
}
sub
fetch
{
my
$self
=
shift
;
my
$row
=
$self
->
SUPER::
fetch
(
@_
);
if
(
$row
)
{
Bugzilla::DB::Oracle::
_fix_arrayref
(
$row
);
}
return
$row
;
}
1
;
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