aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-11-20 12:24:25 +0000
committermkanat%bugzilla.org <>2006-11-20 12:24:25 +0000
commitf8238723b7fbbb73fb2239ee5288d54f3535168b (patch)
tree1b031bbcc44fd20c3eba2ab42412cd1a87ac01bf /Bugzilla
parent70e3b6464c5029187ec144aa12fc8b77c03f90c8 (diff)
downloadbugs-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar
bugs-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar.gz
bugs-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar.bz2
bugs-f8238723b7fbbb73fb2239ee5288d54f3535168b.tar.xz
bugs-f8238723b7fbbb73fb2239ee5288d54f3535168b.zip
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')
-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};