On Tue, May 21, 2002 at 04:14:15PM +0400, Victor Kapustin wrote:
> Yes, I do it that way. But I'd feel more confortable if fetch() would
> deliver a "real" object. But that's personal.
This is database-specific. MySQL fetches all data into memory before we
even get access to it. There is a non-zero probability to exhaust memory
if you always fetch all properties. Remember that list function can return
millions of objects.

Another point is that typical usage pattern for list functions does not include
full attribute access.

> > I built a wrapper functions called mgd_fetch_to_array($fetchable) [1]
> > for this to help me with my customized sorting procedures [2]. If
> Thanks for the lead.
> 
> > Similarily, N would be 1 and __res__ either undefined or NULL.
> A "regular" object has NONE of these members. No N, neither __res__ ;-)
And what else you want? :) Regular objects are not lists thus no N neither
__res__.

-- 
/ Alexander Bokovoy
Software architect and analyst             // SaM-Solutions Ltd.
---
Always think of something new; this helps you forget your last rotten idea.
                -- Seth Frankel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to