diff --git a/drivers/firebird/firebird_result.php b/drivers/firebird/firebird_result.php index 15f6dfa..bc83549 100644 --- a/drivers/firebird/firebird_result.php +++ b/drivers/firebird/firebird_result.php @@ -30,6 +30,7 @@ class Firebird_Result extends PDOStatement { public function __construct($link) { $this->statement = $link; + $this->setFetchMode(PDO::FETCH_ASSOC); } // -------------------------------------------------------------------------- @@ -163,6 +164,19 @@ class Firebird_Result extends PDOStatement { $row = $this->fetch(PDO::FETCH_NUM); return $row[$column_num]; } + + // -------------------------------------------------------------------------- + + /** + * Emulate PDOStatement::fetchObject, but only for the default use + * + * @param int $colum_num + * @return mixed + */ + public function fetchObject($class_name='stdClass', $ctor_args=array()) + { + return $this->fetch(PDO::FETCH_OBJ); + } // -------------------------------------------------------------------------- diff --git a/tests/db_files/FB_TEST_DB.FDB b/tests/db_files/FB_TEST_DB.FDB index 25cbbeb..bf5a512 100644 Binary files a/tests/db_files/FB_TEST_DB.FDB and b/tests/db_files/FB_TEST_DB.FDB differ