summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-03-20 13:03:08 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-03-20 13:03:08 +0100
commit308e61197deec5a4f9f01e86beae67bb463ed2d2 (patch)
treecc3dfd7c155e88b69431ddf9c59f0b6b01f99cb6 /Bugzilla/DB
parenta9f2bb677b5f721ad0c47b52cdf35fca11c64d2d (diff)
downloadbugzilla-308e61197deec5a4f9f01e86beae67bb463ed2d2.tar.gz
bugzilla-308e61197deec5a4f9f01e86beae67bb463ed2d2.tar.xz
Bug 852560: Bugzilla cannot be installed with MySQL 5.6, because the have_innodb variable no longer exists
r=glob a=LpSolit
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Mysql.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index 78d0908fa..908e12721 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/Bugzilla/DB/Mysql.pm
@@ -308,9 +308,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');
}