From: mkanat%bugzilla.org <> Date: Mon, 20 Nov 2006 12:24:25 +0000 (+0000) Subject: Bug 361158: UTF-8 conversion fails on MySQL 5 (attach_data.id; CHARACTER SET binary... X-Git-Tag: bugzilla-2.23.4~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8238723b7fbbb73fb2239ee5288d54f3535168b;p=thirdparty%2Fbugzilla.git Bug 361158: UTF-8 conversion fails on MySQL 5 (attach_data.id; CHARACTER SET binary NOT NULL) Patch By Max Kanat-Alexander r=bkor, a=justdave --- diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index 5dd598dff7..5a9a01416e 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};