Re: [CDBI] why retrieve doesn't return an object

Dave Howorth <dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Organization MRC Centre for Protein Engineering
Message-ID <[email protected]>
Ken Perl wrote:
> In the document it says that retrieve will return a object, but in
> fact it doesn't, it returns just a scalar, look into the code of
> Class::DBI at line 664,
> 
> 664:            return $rows[0];
> 
> $obj = Class->retrieve( %hash );
> 
> is this a bug?

What makes you think $rows[0] isn't an object?

Cheers, Dave
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.