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

Do not use MYSQL_OPT_RECONNECT as possible. #664

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

methane
Copy link
Member

@methane methane commented Nov 10, 2023

MySQL 8.0.33+ shows deprecation warning to stderr.
So we avoid using it as possible.

In the future, we will deprecate reconnect option of the Connection.ping().

Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (91c0428) 88.86% compared to head (976bd97) 88.86%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #664   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files           7        7           
  Lines         548      548           
=======================================
  Hits          487      487           
  Misses         61       61           
Files Coverage Δ
src/MySQLdb/connections.py 87.40% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@methane methane merged commit 0d0fff7 into PyMySQL:main Nov 13, 2023
12 checks passed
@methane methane deleted the reduce-reconnect-warning branch November 13, 2023 08:36
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

Successfully merging this pull request may close these issues.

1 participant