Recent code clean up means the search class is now dropped more quickly - meaning that dropping
these tables in the destructors is too aggressive. Since they are memory tables & temp tables they get
cleaned up anyway I think. We should move this search to an extension that ships with core, not necessarily
enabled on initial install but that is up for discussion
return $dao->N;
}
- public function __destruct() {
- //drop the temp. tables if they exist
- if ($this->_igTable && !empty($this->_includeGroups)) {
- $sql = "DROP TEMPORARY TABLE IF EXISTS {$this->_igTable}";
- CRM_Core_DAO::executeQuery($sql);
- }
-
- if ($this->_xgTable && !empty($this->_excludeGroups)) {
- $sql = "DROP TEMPORARY TABLE IF EXISTS {$this->_xgTable}";
- CRM_Core_DAO::executeQuery($sql);
- }
- }
-
/**
* @param string $tableAlias
*/