1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 01:10:58 +01:00

Minor, use the same connection throughout applyPatchSQL() -- previously we hit caches, but no longer after D2342.

This commit is contained in:
epriestley 2012-04-30 12:10:33 -07:00
parent a10b91a6a9
commit 307ad51404

View file

@ -176,10 +176,12 @@ final class PhabricatorStorageManagementAPI {
$queries = preg_split('/;\s+/', $sql); $queries = preg_split('/;\s+/', $sql);
$queries = array_filter($queries); $queries = array_filter($queries);
$conn = $this->getConn('meta_data', $select_database = false);
foreach ($queries as $query) { foreach ($queries as $query) {
$query = str_replace('{$NAMESPACE}', $this->namespace, $query); $query = str_replace('{$NAMESPACE}', $this->namespace, $query);
queryfx( queryfx(
$this->getConn('meta_data', $select_database = false), $conn,
'%Q', '%Q',
$query); $query);
} }