On Tue, Aug 10, 2004 at 10:44:49PM -0700, Jonathan Leffler wrote: > > DBD::Informix has always implemented things so that the $drh has a > list of the $dbh that have been opened on it, and each $dbh has a list > of the $sth that have been created on it. But I don't particularly > like having to do it -- it seems perfectly obvious to me (but I'm not > Tim) that the $dbh should keep such a track so that whenever a $dbh is > destroyed, all the associated $sth can be destroyed first.
I didn't put that into the DBI itself because a) I'd have to do it with refs and the ref-loops would cause problems, b) many drivers don't need it, and c) those that do can add it themselves. Tim.