aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-19 07:04:36 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-19 07:04:36 -0400
commit062cb7753981f9f2a3e52d1322c81fe03f08747b (patch)
treef7d869cf2652c8b4cb8189e9e59bd2291e386ba7 /include/dba/dba_driver.php
parentb55e2776ccc72be172cdf9a6d29e35716a592708 (diff)
parent50d1d06b0324737ca6dc7dab43e42217ee9381b4 (diff)
downloadvolse-hubzilla-062cb7753981f9f2a3e52d1322c81fe03f08747b.tar.gz
volse-hubzilla-062cb7753981f9f2a3e52d1322c81fe03f08747b.tar.bz2
volse-hubzilla-062cb7753981f9f2a3e52d1322c81fe03f08747b.zip
Merge remote-tracking branch 'upstream/dev' into plugin-repo-ui
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 498bfffa7..e15e107a8 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -32,6 +32,8 @@ function dba_factory($server, $port,$user,$pass,$db,$dbtype,$install = false) {
if(is_null($port)) $set_port = 5432;
$dba = new dba_postgres($server, $set_port, $user, $pass, $db, $install);
} else {
+
+// Highly experimental at the present time.
// require_once('include/dba/dba_pdo.php');
// $dba = new dba_pdo($server, $set_port,$user,$pass,$db,$install);
// }
@@ -42,13 +44,12 @@ function dba_factory($server, $port,$user,$pass,$db,$dbtype,$install = false) {
$dba = new dba_mysqli($server, $set_port,$user,$pass,$db,$install);
}
}
+
+ // Until we have a proper PDO driver, store the DB connection parameters for
+ // plugins/addons which use PDO natively (such as cdav). This is wasteful as
+ // it opens a separate connection to the DB, but saves a lot of effort re-writing
+ // third-party interfaces that are working and well tested.
-// else {
-// if (is_null($port)) $set_port = "3306";
-// require_once('include/dba/dba_mysql.php');
-// $dba = new dba_mysql($server, $set_port,$user,$pass,$db,$install);
-// }
-// }
if(is_object($dba) && $dba->connected) {
$dns = (($dbtype == DBTYPE_POSTGRES) ? 'postgres' : 'mysql')