Improve PDO compatibility of Firebird driver
This commit is contained in:
parent
d3d8e2e1af
commit
9f6f53a06a
@ -68,13 +68,13 @@ class firebird extends DB_PDO {
|
|||||||
*
|
*
|
||||||
* @param string $sql
|
* @param string $sql
|
||||||
* @param array $params
|
* @param array $params
|
||||||
* @return resource
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function query($sql)
|
public function query($sql)
|
||||||
{
|
{
|
||||||
$this->count = 0;
|
$this->count = 0;
|
||||||
$this->statement = ibase_query($this->conn, $sql);
|
$this->statement = ibase_query($this->conn, $sql);
|
||||||
return $this->statement;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
@ -131,12 +131,12 @@ class firebird extends DB_PDO {
|
|||||||
* Emulate PDO prepare
|
* Emulate PDO prepare
|
||||||
*
|
*
|
||||||
* @param string $query
|
* @param string $query
|
||||||
* @return resource
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function prepare($query)
|
public function prepare($query)
|
||||||
{
|
{
|
||||||
$this->statement = ibase_prepare($this->conn, $query);
|
$this->statement = ibase_prepare($this->conn, $query);
|
||||||
return $this->statement;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user