Re: [CDBI] construct sucks.

Tom Metro <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
Ryan Tate wrote:
> Uh, has anyone else ever noticed that ->construct kind of blows rocks?
> 
> Specifically, if you ->construct an object that's already in the
> LiveObject index, CDBI will throw away perfectly good fresh data about
> the object -- columns not present at all in the indexed version -- and
> just hand you whatever incomplete object it has sitting around?

Yeah, I noticed that a while ago, and added an annotation about it here:

http://www.annocpan.org/~TMTM/Class-DBI-0.96/lib/Class/DBI.pm#note_870

It does appear to be a bug and against the described purpose of ->construct.

  -Tom


-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/
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.