diff options
author | zotlabs <mike@macgirvin.com> | 2016-10-19 16:58:26 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-10-19 16:58:26 -0700 |
commit | aee4f8d2fe996f7c35ca90ba19a565bb16a7575f (patch) | |
tree | 20c69e1eb57dd39c0abbef8dbf4452f94a04d9d4 /include/dba/dba_pdo.php | |
parent | c79c1b391331ab7c8c0f01265a627ffae23d54e2 (diff) | |
download | volse-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-x | include/dba/dba_pdo.php | 3 |
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); |