Change dsn port handling in dba_pdo.

This commit is contained in:
Klaus Weidenbach 2018-01-18 23:46:49 +01:00
parent a0e1a8e0a2
commit 8a60bb4619

View File

@ -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;