1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-21 10:40:58 +02:00

[ticket/11583] Allow FULLTEXT indexes on InnoDB when on MySQL 5.6.4 or higher.

PHPBB3-11583
This commit is contained in:
Andreas Fischer
2013-06-01 04:09:33 +02:00
parent a997768627
commit d0e45e17dd
2 changed files with 9 additions and 2 deletions

View File

@ -86,7 +86,14 @@ class fulltext_mysql extends search_backend
$engine = $info['Type'];
}
if ($engine != 'MyISAM')
$fulltext_supported =
$engine === 'MyISAM' ||
// FULLTEXT is supported on InnoDB since MySQL 5.6.4 according to
// http://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html
$engine === 'InnoDB' &&
phpbb_version_compare($db->sql_server_info(true), '5.6.4', '>=');
if (!$fulltext_supported)
{
return $user->lang['FULLTEXT_MYSQL_NOT_MYISAM'];
}