On Fri, May 07, 2004 at 10:04:20AM +0200, [EMAIL PROTECTED] wrote:
> 
> I see your point that you need to identify all the possibilities and
> pre-prepared them, but here you only prepare what you need, and then of
> course, only once.   All you need to do is work out a naming convention so
> that you can save the sth's in the hash.

prepare_cached() does that.

> Note:  $self->disconnect calls this sub to destroy all the prepared
> statements before disconnecting.

The DBI clears the $dbh->{CachedKids} cache before destroying the database handle.

Tim.

Reply via email to