[CDBI] Why does CDBI not populate the object on insert

Perrin Harkins pharkins at gmail.com
Thu Mar 5 19:02:35 GMT 2009


On Thu, Mar 5, 2009 at 1:14 PM, Bill Moseley <moseley at hank.org> 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



More information about the ClassDBI mailing list