From c12fcd9c09b64a7432e55642e1d4a6faca808685 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 18 Apr 2012 11:42:19 -0400 Subject: [PATCH] Firebird cleanup --- drivers/firebird/firebird_driver.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/firebird/firebird_driver.php b/drivers/firebird/firebird_driver.php index 30071fa..9cc070a 100644 --- a/drivers/firebird/firebird_driver.php +++ b/drivers/firebird/firebird_driver.php @@ -19,7 +19,12 @@ */ class Firebird extends DB_PDO { - protected $statement, $statement_link, $trans, $count, $result, $conn; + protected $statement, + $statement_link, + $trans, + $count, + $result, + $conn; /** * Open the link to the database @@ -217,6 +222,18 @@ class Firebird extends DB_PDO { return array(0, $code, $msg); } + + // -------------------------------------------------------------------------- + + /** + * Method to emulate PDO->errorCode + * + * @return array + */ + public function errorCode() + { + return fbird_errcode(); + } // --------------------------------------------------------------------------