From 9f6f53a06a734cec6194f5e8db1173309a79c176 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Tue, 28 Feb 2012 22:28:41 -0500 Subject: [PATCH] Improve PDO compatibility of Firebird driver --- databases/firebird.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/databases/firebird.php b/databases/firebird.php index c549b41..1b7af4b 100644 --- a/databases/firebird.php +++ b/databases/firebird.php @@ -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; } // --------------------------------------------------------------------------