aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_pdo.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-19 16:58:26 -0700
committerzotlabs <mike@macgirvin.com>2016-10-19 16:58:26 -0700
commitaee4f8d2fe996f7c35ca90ba19a565bb16a7575f (patch)
tree20c69e1eb57dd39c0abbef8dbf4452f94a04d9d4 /include/dba/dba_pdo.php
parentc79c1b391331ab7c8c0f01265a627ffae23d54e2 (diff)
downloadvolse-hubzilla-aee4f8d2fe996f7c35ca90ba19a565bb16a7575f.tar.gz
volse-hubzilla-aee4f8d2fe996f7c35ca90ba19a565bb16a7575f.tar.bz2
volse-hubzilla-aee4f8d2fe996f7c35ca90ba19a565bb16a7575f.zip
pdo changes first cut
Diffstat (limited to 'include/dba/dba_pdo.php')
-rwxr-xr-xinclude/dba/dba_pdo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php
index 7255a2b66..823349f53 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -9,11 +9,12 @@ class dba_pdo extends dba_driver {
function connect($server,$port,$user,$pass,$db) {
- $this->driver_dbtype = 'mysql'; // (($dbtype == DBTYPE_POSTGRES) ? 'postgres' : 'mysql');
+ $this->driver_dbtype = 'mysql';
$dns = $this->driver_dbtype
. ':host=' . $server . (is_null($port) ? '' : ';port=' . $port)
. ';dbname=' . $db;
+ db_logger('dns: ' . $dns);
try {
$this->db = new PDO($dns,$user,$pass);