1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

FirebirdDriver: removed $sql from exception in fetch()

This commit is contained in:
David Grudl
2015-10-23 17:24:01 +02:00
parent 11027e2573
commit b3696f9beb

View File

@@ -374,10 +374,10 @@ class FirebirdDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
if (ibase_errcode()) {
if (ibase_errcode() == self::ERROR_EXCEPTION_THROWN) {
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 {
throw new Dibi\DriverException($msg, ibase_errcode(), \dibi::$sql);
throw new Dibi\DriverException($msg, ibase_errcode());
}
}