Re: DB common/oci8/ibase question
| From: | Tomas V.V.Cox | Date: | Thu, 27 Sep 2001 10:37:39 +0000 |
| Subject: | Re: DB common/oci8/ibase question | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2082@lists.php.net to get a copy of this message | ||
yavor shahpasov wrote:
>
> In DB::common the execute method, on success the return value is a DB::result object. Now in
> DB::oci8 and DB::ibase which are the only one's ( I assume ) that have native prepare/execute
> methods the result is a native database resource. My best bet is that this was the former behavior
> of DB::common and was changed a while back. Plus this would probably break code relying on
> method's using prepare/execute (getAll and getAssoc come to mind).
>
Umm, they should act like DB_common::query(), this is: return DB_OK on
manipulative queries or a DB_result on "SELECT" type queries.
Tomas V.V.Cox