Re: [CDBI] why retrieve doesn't return an object
"Ken Perl" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
sorry, It is my program's problem. When I try to re-bless the object returned from retrieve, I met some trouble, so when I debug the program, I found it returns just a scalar. so, could you give me some clue how to re-bless the object returned from the method retrieve? prefer any example code. On 5/18/06, Dave Howorth <dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]> wrote: > 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 > > _______________________________________________ > ClassDBI mailing list > ClassDBI-Ra3b/[email protected] > http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi > -- perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@`` ")'