Re: DB::ifx::freeResult() deviation
| From: | Tomas V.V.Cox | Date: | Tue, 10 Jun 2003 16:49:12 +0000 |
| Subject: | Re: DB::ifx::freeResult() deviation | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17268@lists.php.net to get a copy of this message | ||
The first intention with freeResult() was to be valid to free both prepared
queries resources and result resources. This is not valid for all drivers
and it's needed a freePrepared() and freeResult().
I have half of this coded, expect a patch in a few days.
Tomas V.V.Cox
----- Original Message -----
From: "Roman Neuhauser" <neuhauser@bellavista.cz>
To: "pear-dev" <pear-dev@lists.php.net>
Cc: "Tomas V.V.Cox" <cox@idecnet.com>
Sent: Tuesday, June 10, 2003 5:54 PM
Subject: [PEAR-DEV] DB::ifx::freeResult() deviation
> all other freeResult() implementations begin with
>
> if (is_resource($result)) {
> return foo_free_result($result);
> }
>
> only DB::ifx::freeResult() begins with:
>
> if (is_resource($result)) {
> if (!@ifx_free_result($result)) {
> return $this->driverRaiseError();
> }
> return true;
> }
>
> why, and which version is wrong?
>
> --
> If you cc me or remove the list(s) completely I'll most likely ignore
> your message. see
> http://www.eyrie.org./~eagle/faqs/questions.html
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>