Commit f8238723 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent 70e3b646
...@@ -577,7 +577,8 @@ EOT ...@@ -577,7 +577,8 @@ EOT
$info_sth->execute(); $info_sth->execute();
while (my $column = $info_sth->fetchrow_hashref) { while (my $column = $info_sth->fetchrow_hashref) {
# If this particular column isn't stored in utf-8 # 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/) && $column->{Collation} !~ /utf8/)
{ {
my $name = $column->{Field}; my $name = $column->{Field};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment