mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
DibiPostgreDriver: added user => username alias (thanks to Milan Matejcek)
This commit is contained in:
@@ -74,6 +74,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver
|
||||
$string = $config['string'];
|
||||
} else {
|
||||
$string = '';
|
||||
DibiConnection::alias($config, 'user', 'username');
|
||||
foreach (array('host','hostaddr','port','dbname','user','password','connect_timeout','options','sslmode','service') as $key) {
|
||||
if (isset($config[$key])) $string .= $key . '=' . $config[$key] . ' ';
|
||||
}
|
||||
|
Reference in New Issue
Block a user