my @isam_tables;
foreach my $row (@$table_status) {
my ($name, $type) = @$row;
- push(@isam_tables, $name) if $type eq "ISAM";
+ push(@isam_tables, $name) if (defined($type) && $type eq "ISAM");
}
if(scalar(@isam_tables)) {
my @myisam_tables;
foreach my $row (@$table_status) {
my ($name, $type) = @$row;
- if ($type =~ /^MYISAM$/i
+ if (defined ($type) && $type =~ /^MYISAM$/i
&& !grep($_ eq $name, Bugzilla::DB::Schema::Mysql::MYISAM_TABLES))
{
push(@myisam_tables, $name) ;
my $utf_table_status =
$self->selectall_arrayref("SHOW TABLE STATUS", {Slice=>{}});
$self->_after_table_status([map($_->{Name}, @$utf_table_status)]);
- my @non_utf8_tables = grep($_->{Collation} !~ /^utf8/, @$utf_table_status);
+ my @non_utf8_tables = grep(defined($_->{Collation}) && $_->{Collation} !~ /^utf8/, @$utf_table_status);
if (Bugzilla->params->{'utf8'} && scalar @non_utf8_tables) {
print <<EOT;