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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user