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
70e3e0db
Commit
70e3e0db
authored
Dec 05, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 701350: Oracle crashes if the 'maxattachmentsize' parameter is set to a too small value
r/a=mkanat
parent
77f14b25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Oracle.pm
Bugzilla/DB/Oracle.pm
+6
-2
No files found.
Bugzilla/DB/Oracle.pm
View file @
70e3e0db
...
...
@@ -40,6 +40,8 @@ use base qw(Bugzilla::DB);
use
DBD::
Oracle
;
use
DBD::
Oracle
qw(:ora_types)
;
use
List::
Util
qw(max)
;
use
Bugzilla::
Constants
;
use
Bugzilla::
Error
;
use
Bugzilla::
Util
;
...
...
@@ -50,6 +52,8 @@ use Bugzilla::Util;
use
constant
EMPTY_STRING
=>
'__BZ_EMPTY_STR__'
;
use
constant
ISOLATION_LEVEL
=>
'READ COMMITTED'
;
use
constant
BLOB_TYPE
=>
{
ora_type
=>
ORA_BLOB
};
# The max size allowed for LOB fields, in kilobytes.
use
constant
MIN_LONG_READ_LEN
=>
32
*
1024
;
use
constant
FULLTEXT_OR
=>
' OR '
;
sub
new
{
...
...
@@ -68,8 +72,8 @@ sub new {
my
$dsn
=
"dbi:Oracle:host=$host;sid=$dbname"
;
$dsn
.=
";port=$port"
if
$port
;
my
$attrs
=
{
FetchHashKeyName
=>
'NAME_lc'
,
LongReadLen
=>
(
Bugzilla
->
params
->
{
'maxattachmentsize'
}
||
1000
)
*
1024
,
LongReadLen
=>
max
(
Bugzilla
->
params
->
{
'maxattachmentsize'
},
MIN_LONG_READ_LEN
)
*
1024
,
};
my
$self
=
$class
->
db_new
({
dsn
=>
$dsn
,
user
=>
$user
,
pass
=>
$pass
,
attrs
=>
$attrs
});
...
...
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