]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 852560: Bugzilla cannot be installed with MySQL 5.6, because the have_innodb...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 20 Mar 2013 12:07:04 +0000 (13:07 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 20 Mar 2013 12:07:04 +0000 (13:07 +0100)
r=glob a=LpSolit

Bugzilla/DB/Mysql.pm

index fad175eac72709d9da24b87483347bc9c18a00c7..9ddb46622ce41e401536ebe9bf9b1d05ca13bf16 100644 (file)
@@ -325,9 +325,8 @@ sub bz_setup_database {
     # hard to fix later. We do this up here because none of the code below
     # works if InnoDB is off. (Particularly if we've already converted the
     # tables to InnoDB.)
-    my ($innodb_on) = @{$self->selectcol_arrayref(
-        q{SHOW VARIABLES LIKE '%have_innodb%'}, {Columns=>[2]})};
-    if ($innodb_on ne 'YES') {
+    my %engines = @{$self->selectcol_arrayref('SHOW ENGINES', {Columns => [1,2]})};
+    if (!$engines{InnoDB} || $engines{InnoDB} !~ /^(YES|DEFAULT)$/) {
         die install_string('mysql_innodb_disabled');
     }