Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mbeijen opened this issue Nov 14, 2017 · 0 comments
Open

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

mbeijen opened this issue Nov 14, 2017 · 0 comments

Comments

@mbeijen
Copy link
Contributor

mbeijen commented Nov 14, 2017

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant