1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-07 06:36:44 +02:00

Merge pull request #85 from foglcz/bug-84

Throw entire callstack for interbase-based databases.
This commit is contained in:
David Grudl
2013-04-11 02:39:31 -07:00

View File

@@ -390,7 +390,7 @@ class DibiFirebirdDriver extends DibiObject implements IDibiDriver, IDibiResultD
if (DibiDriverException::catchError($msg)) { if (DibiDriverException::catchError($msg)) {
if (ibase_errcode() == self::ERROR_EXCEPTION_THROWN) { if (ibase_errcode() == self::ERROR_EXCEPTION_THROWN) {
preg_match('/exception (\d+) (\w+) (.*)/i', ibase_errmsg(), $match); preg_match('/exception (\d+) (\w+) (.*)/is', ibase_errmsg(), $match);
throw new DibiProcedureException($match[3], $match[1], $match[2], dibi::$sql); throw new DibiProcedureException($match[3], $match[1], $match[2], dibi::$sql);
} else { } else {