diff --git a/sys/db/query_builder.php b/sys/db/query_builder.php index 1d78881..20b9545 100644 --- a/sys/db/query_builder.php +++ b/sys/db/query_builder.php @@ -917,6 +917,28 @@ class Query_Builder { return $this; } + + // -------------------------------------------------------------------------- + + /** + * Calls a function further down the inheritence chain + * + * @param string $name + * @param array $params + * @return mixed + */ + public function __call($name, $params) + { + if ( ! empty($this->db->$name)) + { + if (is_callable($this->db->$name)) + { + return call_user_func_array(array($this->db, $name), $params); + } + } + + return NULL; + } // -------------------------------------------------------------------------- diff --git a/tests/databases/firebird-qb.php b/tests/databases/firebird-qb.php index bce231a..bf9ce1a 100644 --- a/tests/databases/firebird-qb.php +++ b/tests/databases/firebird-qb.php @@ -142,6 +142,8 @@ class FirebirdQBTest extends UnitTestCase { ->get(); $this->assertTrue(is_resource($query)); + +
= print_r($this->db->fetchAll(), TRUE) ?>} /*function TestGroupBy()