Re: little inconsitency in PEAR DB ... should MDB care?
| From: | Tomas V.V.Cox | Date: | Wed, 17 Jul 2002 23:37:07 +0000 |
| Subject: | Re: little inconsitency in PEAR DB ... should MDB care? | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7760@lists.php.net to get a copy of this message | ||
"Antônio Carlos Venâncio Júnior" wrote:
>
> Tomas,
>
> "Tomas V.V.Cox" <cox@idecnet.com> wrote:
>
> | El lun, 15-07-2002 a las 20:28, Lukas Smith escribió:
> | > Hi,
> | >
> | > just found one instance where PEAR DB uses a pass by reference var to
> | > return data:
> | >
> | > fetchInto()
> |
> | Sorry I guess that I'm not catching where the inconsistency is.
> | FetchInto() is so, fetch the result into that var.
>
> Actually I've found that Sybase::fetchInto() has some problems too and
> there is a comment telling that in the class. After some tests I
> discovered the problem with "sybase_get_last_message()".
> I've added some lines of comments to try to explain what happens and I'm
> trying to figure it out.
> If wanted I can send it to try to fix this because I can't use fetchRow()
> in production since it depends on fetchInto().
>
The only "problem" is that you are not going to be able to throw errors
if something goes wrong while fetching. But that's no problem since
nobody do it and there is, no way to do it :-)
Tomas V.V.Cox