1
0
mirror of https://github.com/dg/dibi.git synced 2025-09-02 02:22:33 +02:00

bugfix, enhanced error reporting, better examples

This commit is contained in:
David Grudl
2007-05-11 22:25:32 +00:00
parent d03f60c43c
commit f766827219
19 changed files with 123 additions and 230 deletions

View File

@@ -43,7 +43,7 @@ class DibiPostgreDriver extends DibiDriver
throw new DibiException("PHP extension 'pgsql' is not loaded");
if (empty($config['string']))
throw new DibiException("Connection string must be specified");
throw new DibiException("Connection string must be specified (driver postgre)");
if (empty($config['type'])) $config['type'] = NULL;
@@ -62,7 +62,7 @@ class DibiPostgreDriver extends DibiDriver
$conn = @pg_pconnect($config['string'], $config['type']);
if (!is_resource($conn))
throw new DibiException("Connecting error", array(
throw new DibiException("Connecting error (driver postgre)", array(
'message' => pg_last_error(),
));