Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Expose Cursor.warning_count #1056

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

Merged
merged 2 commits into from
May 23, 2023
Merged

Expose Cursor.warning_count #1056

merged 2 commits into from
May 23, 2023

Conversation

Nothing4You
Copy link
Contributor

In #774 automatic warnings were removed.
As far as I can tell there is currently no public API to access cursor._result.warning_count.

This provides a way to check for existence of warnings without having to perform an additional query over the network.

After the removal of automatic warnings in PyMySQL#774 this provides a way to check
for existence of warnings without having to perform an additional query over
the network.
@LostInDarkMath
Copy link

This is exactly what I needed :)

@methane methane added this to the v1.1 milestone May 23, 2023
@methane methane merged commit 01ddf9d into PyMySQL:main May 23, 2023
@Nothing4You Nothing4You deleted the warning-count branch May 23, 2023 12:34
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants