Subject: | auto-reconnect should clear CachedKids |
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.