[CDBI] why retrieve doesn't return an object

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Thu May 18 10:50:20 BST 2006

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

More information about the ClassDBI mailing list