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
738cacaa
Commit
738cacaa
authored
Sep 02, 2013
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bustage on Oracle due to bug 898830
parent
94cd0aae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Attachment.pm
Bugzilla/Attachment.pm
+2
-2
No files found.
Bugzilla/Attachment.pm
View file @
738cacaa
...
...
@@ -684,13 +684,13 @@ sub get_attachments_by_bug {
# Preload datasizes.
my
$sizes
=
$dbh
->
selectall_hashref
(
'SELECT attach_id, LENGTH(thedata) AS size
$dbh
->
selectall_hashref
(
'SELECT attach_id, LENGTH(thedata) AS
data
size
FROM attachments LEFT JOIN attach_data ON attach_id = id
WHERE bug_id = ?'
,
'attach_id'
,
undef
,
$bug
->
id
);
# Force the size of attachments not in the DB to be recalculated.
$_
->
{
datasize
}
=
$sizes
->
{
$_
->
id
}
->
{
size
}
||
undef
foreach
@$attachments
;
$_
->
{
datasize
}
=
$sizes
->
{
$_
->
id
}
->
{
data
size
}
||
undef
foreach
@$attachments
;
}
return
$attachments
;
}
...
...
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