summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-11-20 13:24:25 +0100
committermkanat%bugzilla.org <>2006-11-20 13:24:25 +0100
commitf8238723b7fbbb73fb2239ee5288d54f3535168b (patch)
tree1b031bbcc44fd20c3eba2ab42412cd1a87ac01bf /Bugzilla/DB
parent70e3b6464c5029187ec144aa12fc8b77c03f90c8 (diff)
downloadbugzilla-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar.gz
bugzilla-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar.xz
Bug 361158: UTF-8 conversion fails on MySQL 5 (attach_data.id; CHARACTER SET binary NOT NULL)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Mysql.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index 5dd598dff..5a9a01416 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/Bugzilla/DB/Mysql.pm
@@ -577,7 +577,8 @@ EOT
$info_sth->execute();
while (my $column = $info_sth->fetchrow_hashref) {
# If this particular column isn't stored in utf-8
- if ($column->{Collation} ne 'NULL'
+ if ($column->{Collation}
+ && $column->{Collation} ne 'NULL'
&& $column->{Collation} !~ /utf8/)
{
my $name = $column->{Field};