summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Attachment.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-09-02 02:35:18 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-09-02 02:35:18 +0200
commit738cacaa640160fddbe82e3216e7ea5fcf65efa1 (patch)
tree021509f8b6a965a77afbfeb313a530028a1ba917 /Bugzilla/Attachment.pm
parent94cd0aae72664d91d4097791f03d2e7ffbe4e5cc (diff)
downloadbugzilla-738cacaa640160fddbe82e3216e7ea5fcf65efa1.tar.gz
bugzilla-738cacaa640160fddbe82e3216e7ea5fcf65efa1.tar.xz
Fix bustage on Oracle due to bug 898830
Diffstat (limited to 'Bugzilla/Attachment.pm')
-rw-r--r--Bugzilla/Attachment.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm
index 7e758c874..251363c35 100644
--- a/Bugzilla/Attachment.pm
+++ b/Bugzilla/Attachment.pm
@@ -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 datasize
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}->{datasize} || undef foreach @$attachments;
}
return $attachments;
}