aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-17 22:32:49 -0700
committerredmatrix <git@macgirvin.com>2016-05-17 22:32:49 -0700
commit16f79b70e4e3fd572de4d3fc938802fa8c536bca (patch)
tree4abf49f0f9d3bc458743d227e9930e51938cb35a /include/dba/dba_driver.php
parent43c2b22fca908cb5c7bb740855cbd9d04e085d62 (diff)
downloadvolse-hubzilla-16f79b70e4e3fd572de4d3fc938802fa8c536bca.tar.gz
volse-hubzilla-16f79b70e4e3fd572de4d3fc938802fa8c536bca.tar.bz2
volse-hubzilla-16f79b70e4e3fd572de4d3fc938802fa8c536bca.zip
experimental PDO DBA driver
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index 4a1752672..498bfffa7 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -32,16 +32,23 @@ 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 {
+// require_once('include/dba/dba_pdo.php');
+// $dba = new dba_pdo($server, $set_port,$user,$pass,$db,$install);
+// }
+
if(class_exists('mysqli')) {
if (is_null($port)) $set_port = ini_get("mysqli.default_port");
require_once('include/dba/dba_mysqli.php');
$dba = new dba_mysqli($server, $set_port,$user,$pass,$db,$install);
- } 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);
}
}
+
+// 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')