1
0
mirror of https://github.com/dg/dibi.git synced 2025-10-24 03:06:07 +02:00

* fixed odbc_num_rows and pg_affected_rows

This commit is contained in:
David Grudl
2007-08-23 17:12:58 +00:00
parent 05b8c0ad43
commit 7f995a558b
12 changed files with 172 additions and 102 deletions

View File

@@ -37,12 +37,14 @@ class DibiException extends Exception
}
final public function getSql()
{
return $this->sql;
}
final public function getDbError()
{
return $this->dbError;
@@ -56,13 +58,16 @@ class DibiException extends Exception
if ($this->dbError) {
$s .= "\n\nDatabase error: ";
if (isset($this->dbError['code']))
if (isset($this->dbError['code'])) {
$s .= "[" . $this->dbError['code'] . "] ";
}
$s .= $this->dbError['message'];
}
if ($this->sql) $s .= "\nSQL: " . $this->sql;
if ($this->sql) {
$s .= "\nSQL: " . $this->sql;
}
return $s;
}