Re: [CDBI] Why does CDBI not populate the object on insert
Perrin Harkins <[email protected]> Thu, 5 Mar 2009 14:02:35 -0500
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Mar 5, 2009 at 1:14 PM, Bill Moseley <[email protected]> wrote: > I suppose there could be times when "name" comes back out of the > database different than it went in, but most of the time not. > Just seems a bit inefficient. I think it was the possibility of changes in the db that resulted in this. I believe it clears all columns except the primary key after an insert. Yes, inefficient for common situations. If you're sure this isn't an issue for you, I bet you could chop that part of _insert() out pretty simply. - Perrin