]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 361158: UTF-8 conversion fails on MySQL 5 (attach_data.id; CHARACTER SET binary...
authormkanat%bugzilla.org <>
Mon, 20 Nov 2006 12:24:25 +0000 (12:24 +0000)
committermkanat%bugzilla.org <>
Mon, 20 Nov 2006 12:24:25 +0000 (12:24 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave

Bugzilla/DB/Mysql.pm

index 5dd598dff7042f8c4b3443e2499ea0a0c2935566..5a9a01416e5be80d53690dcde2a09247d317770b 100644 (file)
@@ -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};