mirror of
https://github.com/dg/dibi.git
synced 2025-09-01 02:01:48 +02:00
* throwing exception in DibiTranslator and DibiDriver
+ added dibi::$errorMode
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
* This source file is subject to the GNU GPL license.
|
||||
*
|
||||
* @author David Grudl aka -dgx- <dave@dgx.cz>
|
||||
* @link http://texy.info/dibi/
|
||||
* @link http://dibi.texy.info/
|
||||
* @copyright Copyright (c) 2005-2006 David Grudl
|
||||
* @license GNU GENERAL PUBLIC LICENSE v2
|
||||
* @package dibi
|
||||
* @category Database
|
||||
* @version $Revision: 17 $ $Date: 2006-08-25 20:10:30 +0200 (pá, 25 VIII 2006) $
|
||||
* @version $Revision$ $Date$
|
||||
*/
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ class DibiPostgreDriver extends DibiDriver {
|
||||
return new DibiPostgreResult($res);
|
||||
|
||||
if ($res === FALSE)
|
||||
return new DibiException("Query error", array(
|
||||
throw new DibiException("Query error", array(
|
||||
'message' => pg_last_error($this->conn),
|
||||
'sql' => $sql,
|
||||
));
|
||||
|
Reference in New Issue
Block a user