RE: [PEAR-DEV] little inconsitency in PEAR DB ... should MDB care?
| From: | Lukas Smith | Date: | Tue, 16 Jul 2002 13:04:13 +0000 |
| Subject: | RE: [PEAR-DEV] little inconsitency in PEAR DB ... should MDB care? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7745@lists.php.net to get a copy of this message | ||
Thx for the feedback
> > but this could also be done like this if I am not mistaken:
> >
> > while (is_array($rs->fetchInto($fields))) {
> > ...
> > }
>
> Nop, think on DB_FETCHMODE_OBJECT
Yeah you are right.
> IMHO PEAR DB is a little bit bloat with the amount of fetch types and
> methods. If I'd create it from ground I'll only provide fetchRow() and
> DB_FETCHMODE_(ORDERED|ASSOC), dropping fetchInto() and
> DB_FETCHMODE_OBJECT. Btw I guess that fetchInto() is a little more
fast
> and some people do love row objects.
MDB does not support DB_FETCHMODE_OBJECT anyways :-)
(I am not even sure if I have it in the wrapper ... I will check that)
Best regards,
Lukas