mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
FirebirdDriver: removed $sql from exception in fetch()
This commit is contained in:
@@ -374,10 +374,10 @@ class FirebirdDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
|
|||||||
if (ibase_errcode()) {
|
if (ibase_errcode()) {
|
||||||
if (ibase_errcode() == self::ERROR_EXCEPTION_THROWN) {
|
if (ibase_errcode() == self::ERROR_EXCEPTION_THROWN) {
|
||||||
preg_match('/exception (\d+) (\w+) (.*)/is', ibase_errmsg(), $match);
|
preg_match('/exception (\d+) (\w+) (.*)/is', ibase_errmsg(), $match);
|
||||||
throw new Dibi\ProcedureException($match[3], $match[1], $match[2], \dibi::$sql);
|
throw new Dibi\ProcedureException($match[3], $match[1], $match[2]);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw new Dibi\DriverException($msg, ibase_errcode(), \dibi::$sql);
|
throw new Dibi\DriverException($msg, ibase_errcode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user