1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 09:04:24 +02:00

- added parameter $name in dibi::getConnection()

- bug fixed error handling in SQlite driver
This commit is contained in:
David Grudl
2007-04-06 07:34:48 +00:00
parent 53178717ad
commit 89ee302927
4 changed files with 24 additions and 20 deletions

View File

@@ -36,6 +36,7 @@ class DibiException extends Exception
{
$this->dbError = $dbError;
$this->sql = $sql;
parent::__construct($message);
}
@@ -57,7 +58,7 @@ class DibiException extends Exception
$s = parent::__toString();
if ($this->dbError) {
$s .= "\nERROR: ";
$s .= "\n\nDatabase error: ";
if (isset($this->dbError['code']))
$s .= "[" . $this->dbError['code'] . "] ";