Page MenuHomePhabricator

D15673.diff
No OneTemporary

D15673.diff

diff --git a/src/aphront/storage/connection/AphrontDatabaseConnection.php b/src/aphront/storage/connection/AphrontDatabaseConnection.php
--- a/src/aphront/storage/connection/AphrontDatabaseConnection.php
+++ b/src/aphront/storage/connection/AphrontDatabaseConnection.php
@@ -16,6 +16,7 @@
abstract public function executeRawQuery($raw_query);
abstract public function executeRawQueries(array $raw_queries);
abstract public function close();
+ abstract public function openConnection();
public function queryData($pattern/* , $arg, $arg, ... */) {
$args = func_get_args();
diff --git a/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php b/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
--- a/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
+++ b/src/aphront/storage/connection/AphrontIsolatedDatabaseConnection.php
@@ -22,6 +22,10 @@
}
}
+ public function openConnection() {
+ return;
+ }
+
public function close() {
return;
}
diff --git a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
--- a/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
+++ b/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
@@ -27,6 +27,10 @@
$this->establishConnection();
}
+ public function openConnection() {
+ $this->requireConnection();
+ }
+
public function close() {
if ($this->lastResult) {
$this->lastResult = null;

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 2:57 AM (9 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6930886
Default Alt Text
D15673.diff (1 KB)

Event Timeline