X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FInnoDBIndexer.php;h=abe15f8edcaf14834977548b38f1c19b828144c6;hb=92b0f883315c72514e629b1c9e37261b84186785;hp=fca34148b098f57cfdac8604de3bd9bfbc45e232;hpb=d3dd908218b3e4ca605655399c5783c737aa1970;p=civicrm-core.git diff --git a/CRM/Core/InnoDBIndexer.php b/CRM/Core/InnoDBIndexer.php index fca34148b0..abe15f8edc 100644 --- a/CRM/Core/InnoDBIndexer.php +++ b/CRM/Core/InnoDBIndexer.php @@ -156,6 +156,13 @@ class CRM_Core_InnoDBIndexer { * @return array (string $indexName => string $indexName) */ public function findActualFtsIndexNames($table) { + $mysqlVersion = CRM_Core_DAO::singleValueQuery('SELECT VERSION()'); + if (version_compare($mysqlVersion, '5.6', '<')) { + // If we're not on 5.6+, then there cannot be any InnoDB FTS indices! + // Also: information_schema.innodb_sys_indexes is only available on 5.6+. + return array(); + } + // Note: this only works in MySQL 5.6, but this whole system is intended to only work in MySQL 5.6 $sql = " SELECT i.name as index_name