DBD-mysql icon indicating copy to clipboard operation
DBD-mysql copied to clipboard

auto-reconnect should clear CachedKids [rt.cpan.org #17151]

Open mbeijen opened this issue 8 years ago • 0 comments
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.

mbeijen avatar Nov 14 '17 19:11 mbeijen