From 307ad51404bdc6d0047ad0bde362236e7318e77c Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 30 Apr 2012 12:10:33 -0700 Subject: [PATCH] Minor, use the same connection throughout applyPatchSQL() -- previously we hit caches, but no longer after D2342. --- .../storage/management/PhabricatorStorageManagementAPI.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php index 9d838a546e..d713ab7311 100644 --- a/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php +++ b/src/infrastructure/setup/storage/management/PhabricatorStorageManagementAPI.php @@ -176,10 +176,12 @@ final class PhabricatorStorageManagementAPI { $queries = preg_split('/;\s+/', $sql); $queries = array_filter($queries); + $conn = $this->getConn('meta_data', $select_database = false); + foreach ($queries as $query) { $query = str_replace('{$NAMESPACE}', $this->namespace, $query); queryfx( - $this->getConn('meta_data', $select_database = false), + $conn, '%Q', $query); }