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

Fix SSCursor raising query timeout error on wrong query on MySQL DB #761

Merged
merged 1 commit into from Apr 11, 2022

Conversation

Nothing4You
Copy link
Collaborator

@Nothing4You Nothing4You commented Apr 10, 2022

What do these changes do?

Ports PyMySQL/PyMySQL@dd0f854 from PyMySQL/PyMySQL#1035.
See PyMySQL/PyMySQL#1032 (comment) for a full explanation of the issue.
Tests for this are not included due to the seemingly non-deterministic behavior.

Are there changes in behavior for the user?

Query timeout errors are ignored on SSCursor, rather than raising on subsequent, unrelated queries.

Related issue number

fixes #428

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment to CHANGES.txt

@Nothing4You Nothing4You added bug pymysql-port Awaiting or implementing port of PyMySQL change labels Apr 10, 2022
@Nothing4You Nothing4You added this to the 0.1 milestone Apr 10, 2022
@codecov
Copy link

codecov bot commented Apr 10, 2022

Codecov Report

Merging #761 (b3d61f1) into master (ef42007) will decrease coverage by 0.09%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##           master     #761      +/-   ##
==========================================
- Coverage   92.84%   92.74%   -0.10%     
==========================================
  Files          38       38              
  Lines        5551     5558       +7     
  Branches      941      942       +1     
==========================================
+ Hits         5154     5155       +1     
- Misses        309      315       +6     
  Partials       88       88              
Flag Coverage Δ
ubuntu-latest_3.10_mariadb-10.2 89.29% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mariadb-10.3 89.29% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mariadb-10.4 89.29% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mariadb-10.5 89.27% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mariadb-10.6 89.27% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mariadb-10.7 89.27% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mysql-5.7 89.97% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.10_mysql-8.0 91.36% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.2 89.25% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.3 89.25% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.4 89.25% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.5 89.24% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.6 89.24% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mariadb-10.7 89.24% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mysql-5.7 89.94% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.11-dev_mysql-8.0 91.32% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.2 88.69% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.3 88.69% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.4 88.69% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.5 88.67% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.6 88.67% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mariadb-10.7 88.67% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.7_mysql-5.7 89.42% <25.00%> (-0.11%) ⬇️
ubuntu-latest_3.7_mysql-8.0 90.89% <25.00%> (-0.11%) ⬇️
ubuntu-latest_3.8_mariadb-10.2 89.33% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mariadb-10.3 89.33% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mariadb-10.4 89.33% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mariadb-10.5 89.31% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mariadb-10.6 89.31% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mariadb-10.7 89.31% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mysql-5.7 90.01% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.8_mysql-8.0 91.38% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.2 89.19% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.3 89.19% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.4 89.19% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.5 89.17% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.6 89.17% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mariadb-10.7 89.17% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mysql-5.7 89.87% <25.00%> (-0.10%) ⬇️
ubuntu-latest_3.9_mysql-8.0 91.24% <25.00%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiomysql/connection.py 84.02% <25.00%> (-0.59%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef42007...b3d61f1. Read the comment docs.

@Nothing4You Nothing4You merged commit 1e474e6 into aio-libs:master Apr 11, 2022
@Nothing4You Nothing4You deleted the port-pymysql-1035 branch April 11, 2022 00:09
andr-04 added a commit to andr-04/aiomysql that referenced this pull request May 13, 2022
* commit '8a32f052a16dc3886af54b98f4d91d95862bfb8e': (92 commits)
  Update changelog for 0.1.1 release (aio-libs#784)
  Bump pytest from 7.1.1 to 7.1.2 (aio-libs#781)
  XFail test_issue_36 for now to avoid failing for unrelated changes (aio-libs#779)
  Skip codecov uploads in scheduled daily tests (aio-libs#778)
  Bump codecov/codecov-action from 3.0.0 to 3.1.0 (aio-libs#777)
  Fix SSL connection handshake charset not respecting client configuration (aio-libs#776)
  Bump ncipollo/release-action from 1.9.0 to 1.10.0 (aio-libs#766)
  Bump actions/cache from 3.0.1 to 3.0.2 (aio-libs#771)
  Bump actions/download-artifact from 2 to 3 (aio-libs#765)
  Bump actions/upload-artifact from 2 to 3 (aio-libs#767)
  Update changelog for release (aio-libs#769)
  Checkout git source to access changelog for GitHub release creation
  Change next version to 0.1.0 in changelog
  Fix GHA badge in readme after aio-libs#734 (aio-libs#762)
  Fix SSCursor raising query timeout error on wrong query on MySQL DB (aio-libs#761)
  Specify explicit language for literal blocks in CONTRIBUTING.rst to reduce warnings in doc builds (aio-libs#760)
  fix `make checkrst` (aio-libs#759)
  Update sphinx requirement from <4.4.1,>=1.8.1 to 4.5.0 (aio-libs#751)
  Bump codecov/codecov-action from 2.1.0 to 3.0.0 (aio-libs#758)
  Bump actions/cache from 2.1.7 to 3.0.1 (aio-libs#752)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pymysql-port Awaiting or implementing port of PyMySQL change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSCursor can't close while raise Error
1 participant