From ceefef9f020beec7ba83aabf7ce1a6e2ab37d6e2 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Mon, 18 Nov 2013 11:51:56 -0800 Subject: [PATCH] CRM-13792 - Custom search triggers table full error http://issues.civicrm.org/jira/browse/CRM-13792 --- CRM/Contact/Form/Search/Custom/Group.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CRM/Contact/Form/Search/Custom/Group.php b/CRM/Contact/Form/Search/Custom/Group.php index 999a733e80..b40d55f122 100644 --- a/CRM/Contact/Form/Search/Custom/Group.php +++ b/CRM/Contact/Form/Search/Custom/Group.php @@ -32,7 +32,9 @@ * $Id$ * */ -class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface { +class CRM_Contact_Form_Search_Custom_Group + extends CRM_Contact_Form_Search_Custom_Base + implements CRM_Contact_Form_Search_Interface { protected $_formValues; @@ -283,7 +285,7 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo $xGroups = 0; } - $sql = "CREATE TEMPORARY TABLE Xg_{$this->_tableName} ( contact_id int primary key) ENGINE=HEAP"; + $sql = "CREATE TEMPORARY TABLE Xg_{$this->_tableName} ( contact_id int primary key) ENGINE=MyISAM"; CRM_Core_DAO::executeQuery($sql); //used only when exclude group is selected @@ -318,7 +320,7 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo $sql = "CREATE TEMPORARY TABLE Ig_{$this->_tableName} ( id int PRIMARY KEY AUTO_INCREMENT, contact_id int, - group_names varchar(64)) ENGINE=HEAP"; + group_names varchar(64)) ENGINE=MyISAM"; CRM_Core_DAO::executeQuery($sql); @@ -418,7 +420,7 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo $xTags = 0; } - $sql = "CREATE TEMPORARY TABLE Xt_{$this->_tableName} ( contact_id int primary key) ENGINE=HEAP"; + $sql = "CREATE TEMPORARY TABLE Xt_{$this->_tableName} ( contact_id int primary key) ENGINE=MyISAM"; CRM_Core_DAO::executeQuery($sql); //used only when exclude tag is selected @@ -436,7 +438,7 @@ class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custo $sql = "CREATE TEMPORARY TABLE It_{$this->_tableName} ( id int PRIMARY KEY AUTO_INCREMENT, contact_id int, - tag_names varchar(64)) ENGINE=HEAP"; + tag_names varchar(64)) ENGINE=MyISAM"; CRM_Core_DAO::executeQuery($sql); -- 2.25.1