From e8517b43dc6d4c2f65eda833f87327d74fa1b60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Mirtes?= Date: Thu, 22 Apr 2010 03:59:24 +0800 Subject: [PATCH] PostgreSQL driver now allows 'database' key in config array instead of 'dbname' --- dibi/drivers/postgre.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dibi/drivers/postgre.php b/dibi/drivers/postgre.php index 86b2f375..ebf955bb 100644 --- a/dibi/drivers/postgre.php +++ b/dibi/drivers/postgre.php @@ -67,6 +67,7 @@ class DibiPostgreDriver extends DibiObject implements IDibiDriver } else { $string = ''; DibiConnection::alias($config, 'user', 'username'); + DibiConnection::alias($config, 'dbname', 'database'); foreach (array('host','hostaddr','port','dbname','user','password','connect_timeout','options','sslmode','service') as $key) { if (isset($config[$key])) $string .= $key . '=' . $config[$key] . ' '; }