DBD-mysql
DBD-mysql copied to clipboard
auto-reconnect should clear CachedKids [rt.cpan.org #17151]
trafficstars
Migrated from rt.cpan.org#17151 (status was 'new')
Requestors:
From on 2006-01-19 10:53:57:
To clear CachedKids on auto-reconnect:
SvREFCNT_dec(DBIc_CACHED_KIDS(imp_dbh));
DBIc_CACHED_KIDS(imp_dbh) = Nullhv;
The docs also need to explain that any server-side prepared statement handles held by the
application will be broken by an auto-reconnect.
DBD::mysql could detect this and automatically prepare them again from the original Statement
when they're next executed.