From f8238723b7fbbb73fb2239ee5288d54f3535168b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 20 Nov 2006 12:24:25 +0000 Subject: 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 --- Bugzilla/DB/Mysql.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/DB') 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}; -- cgit v1.2.3-24-g4f1b