mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 10:53:17 +01:00
DibiPostgreDriver: added user => username alias (thanks to Milan Matejcek)
This commit is contained in:
parent
fa6d771813
commit
217de42d20
@ -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] . ' ';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user