From a76294a47c483a230da20be69cd98ce571ea8597 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 29 Aug 2017 14:19:09 +1000 Subject: [PATCH] Drop Table before returning from function Include word temporary hopefully appeases jenkins --- CRM/Contact/BAO/Relationship.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index ad3adc5028..64edc3a979 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1291,6 +1291,7 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) while ($relationship->fetch()) { $relationshipCount += $relationship->cnt1 + $relationship->cnt2; } + CRM_Core_DAO::executeQuery("DROP TEMPORARY TABLE IF EXISTS civicrm_contact_relationships"); return $relationshipCount; } else { @@ -1444,6 +1445,7 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) } $relationship->free(); + CRM_Core_DAO::executeQuery("DROP TEMPORARY TABLE IF EXISTS civicrm_contact_relationships"); return $values; } } -- 2.25.1