From e18a0f04287c5797e136f79a4ca90b4338f000eb Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Mon, 20 Nov 2006 04:24:25 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@215457 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm index 5dd598dff70..5a9a01416e5 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm +++ b/mozilla/webtools/bugzilla/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};