From 217de42d20013bc5f7e3ad8dbe54a71267837159 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 21 Aug 2009 13:48:16 +0200 Subject: [PATCH] DibiPostgreDriver: added user => username alias (thanks to Milan Matejcek) --- dibi/drivers/postgre.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dibi/drivers/postgre.php b/dibi/drivers/postgre.php index c0345b8..6d5eb22 100644 --- a/dibi/drivers/postgre.php +++ b/dibi/drivers/postgre.php @@ -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] . ' '; }