Improve PDO compatibility of Firebird driver

This commit is contained in:
Timothy Warren 2012-02-28 22:28:41 -05:00
parent d3d8e2e1af
commit 9f6f53a06a

View File

@ -68,13 +68,13 @@ class firebird extends DB_PDO {
*
* @param string $sql
* @param array $params
* @return resource
* @return $this
*/
public function query($sql)
{
$this->count = 0;
$this->statement = ibase_query($this->conn, $sql);
return $this->statement;
return $this;
}
// --------------------------------------------------------------------------
@ -131,12 +131,12 @@ class firebird extends DB_PDO {
* Emulate PDO prepare
*
* @param string $query
* @return resource
* @return $this
*/
public function prepare($query)
{
$this->statement = ibase_prepare($this->conn, $query);
return $this->statement;
return $this;
}
// --------------------------------------------------------------------------