diff --git a/classes/db_pdo.php b/classes/db_pdo.php index 037419a..de6f805 100644 --- a/classes/db_pdo.php +++ b/classes/db_pdo.php @@ -51,6 +51,8 @@ abstract class DB_PDO extends PDO { */ public function __construct($dsn, $username=NULL, $password=NULL, $driver_options=array()) { + // Set PDO to display errors as exceptions + $driver_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; parent::__construct($dsn, $username, $password, $driver_options); // Load the sql class for the driver @@ -61,9 +63,6 @@ abstract class DB_PDO extends PDO { $class = get_class($this)."_util"; $this->util = new $class($this); - // Set PDO to display errors as exceptions - $this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - // Set additional driver options, if they exist if ( ! empty($driver_options) && is_array($driver_options)) { diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index 15e8f66..d10160c 100755 Binary files a/tests/db_files/FB_TEST_DB.FDB and b/tests/db_files/FB_TEST_DB.FDB differ