diff --git a/sys/db/drivers/firebird-ibase.php b/sys/db/drivers/firebird-ibase.php index a54789b..b33cae4 100644 --- a/sys/db/drivers/firebird-ibase.php +++ b/sys/db/drivers/firebird-ibase.php @@ -83,18 +83,18 @@ class firebird extends DB_PDO { if (isset($this->trans)) { - $this->statement = ibase_query($this->trans, $sql); + $this->statement = @ibase_query($this->trans, $sql); } else { - $this->statement = ibase_query($this->conn, $sql); + $this->statement = @ibase_query($this->conn, $sql); } // Throw the error as a exception - /*if ($this->statement === FALSE) + if ($this->statement === FALSE) { throw new PDOException(ibase_errmsg()); - }*/ + } return $this->statement; } @@ -157,13 +157,13 @@ class firebird extends DB_PDO { */ public function prepare($query, $options=NULL) { - $this->statement = ibase_prepare($this->conn, $query); + $this->statement = @ibase_prepare($this->conn, $query); // Throw the error as an exception - /*if ($this->statement === FALSE) + if ($this->statement === FALSE) { throw new PDOException(ibase_errmsg()); - }*/ + } return $this->statement; } diff --git a/sys/db/query_builder.php b/sys/db/query_builder.php index f2eac8d..f6cd0a4 100644 --- a/sys/db/query_builder.php +++ b/sys/db/query_builder.php @@ -59,28 +59,6 @@ class Query_Builder { // -------------------------------------------------------------------------- - /** - * Shortcut to directly call database methods - * - * @param string $name - * @param array $params - * @return mixed - */ - public function __call($name, $params) - { - if (method_exists($this->db, $name)) - { - if (is_callable($this->db->$name)) - { - return call_user_func_array($this->db->$name, $params); - } - } - - return NULL; - } - - // -------------------------------------------------------------------------- - /** * Select and retrieve all records from the current table, and/or * execute current compiled query @@ -93,7 +71,7 @@ class Query_Builder { public function get($table='', $limit=FALSE, $offset=FALSE) { // @todo Only add in the table name when using the select method - // @tood Only execute combined query when using other query methods and empty parameters + // @todo Only execute combined query when using other query methods and empty parameters $sql = 'SELECT * FROM ' . $this->db->quote_ident($table); @@ -172,4 +150,16 @@ class Query_Builder { // @todo Implement from method return $this; } + + // -------------------------------------------------------------------------- + + /** + * String together the sql statements for sending to the db + * + * @return $string + */ + private function _compile() + { + // @todo Implement _compile method + } } \ No newline at end of file diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index 24b583a..f7e36f7 100755 Binary files a/tests/test_dbs/FB_TEST_DB.FDB and b/tests/test_dbs/FB_TEST_DB.FDB differ