// May or may not cleanup well if there's a bug in the indexer.
// This is better than nothing -- and better than duplicating the
// cleanup logic.
// May or may not cleanup well if there's a bug in the indexer.
// This is better than nothing -- and better than duplicating the
// cleanup logic.
$idx = new CRM_Core_InnoDBIndexer(TRUE, array(
'civicrm_contact' => array(
array('first_name', 'last_name'),
$idx = new CRM_Core_InnoDBIndexer(TRUE, array(
'civicrm_contact' => array(
array('first_name', 'last_name'),
$idx = new CRM_Core_InnoDBIndexer(FALSE, array(
'civicrm_contact' => array(
array('first_name', 'last_name'),
$idx = new CRM_Core_InnoDBIndexer(FALSE, array(
'civicrm_contact' => array(
array('first_name', 'last_name'),
try {
CRM_Core_DAO::executeQuery('SELECT id FROM civicrm_contact WHERE MATCH(first_name,last_name) AGAINST ("joe")');
$this->fail("Missed expected exception");
try {
CRM_Core_DAO::executeQuery('SELECT id FROM civicrm_contact WHERE MATCH(first_name,last_name) AGAINST ("joe")');
$this->fail("Missed expected exception");
if (!$this->supportsFts()) {
$this->markTestSkipped("Local installation of InnoDB does not support FTS.");
return;
if (!$this->supportsFts()) {
$this->markTestSkipped("Local installation of InnoDB does not support FTS.");
return;