Change dsn port handling in dba_pdo.
This commit is contained in:
parent
a0e1a8e0a2
commit
8a60bb4619
@ -15,7 +15,7 @@ class dba_pdo extends dba_driver {
|
||||
$dsn = $server;
|
||||
}
|
||||
else {
|
||||
$dsn = $this->driver_dbtype . ':host=' . $server . (intval($port) ? '' : ';port=' . $port);
|
||||
$dsn = $this->driver_dbtype . ':host=' . $server . (intval($port) ? ';port=' . $port : '');
|
||||
}
|
||||
|
||||
$dsn .= ';dbname=' . $db;
|
||||
|
Reference in New Issue
Block a user