From 93befa89aa2021243f136988228212b0f9f5bb92 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 4 Aug 2019 04:22:47 -0400 Subject: [PATCH] fix small issue --- Bugzilla/DB/Mysql.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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'; -- 2.47.2