From: Dylan William Hardison Date: Sun, 4 Aug 2019 08:22:47 +0000 (-0400) Subject: fix small issue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93befa89aa2021243f136988228212b0f9f5bb92;p=thirdparty%2Fbugzilla.git fix small issue --- diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index bd5ec4c0c6..0e0a017fec 100644 --- a/Bugzilla/DB/Mysql.pm +++ b/Bugzilla/DB/Mysql.pm @@ -346,10 +346,11 @@ sub bz_setup_database { die install_string('mysql_innodb_settings') unless $utf8mb4_supported; my $tables = $self->selectall_arrayref('SHOW TABLE STATUS'); - foreach my $table (@$tables) { - my ($table, undef, undef, $row_format) = @$table; + foreach my $table_status (@$tables) { + my ($table, undef, undef, $row_format) = @$table_status; + my $table_type = $table_status->[-1]; my $new_row_format = $self->default_row_format($table); - next if lc($table->[-1]) eq 'view'; + next if lc($table_type) eq 'view'; next if lc($new_row_format) eq 'compact'; next if lc($row_format) eq 'dynamic'; next if lc($row_format) eq 'compressed';