[Feature] Support automatic showing of warnings after SQL execution (#555)#1413
Merged
rolandwalker merged 6 commits intodbcli:mainfrom Dec 20, 2025
Merged
Conversation
…gest formatting / code changes from uv. Updated changelog and authors.
Contributor
|
Outstanding! Looks like the type stubs will be updated tomorrow. |
rolandwalker
approved these changes
Dec 20, 2025
|
For those who read the release note of v1.42.0 to find this functionality and tried to use The PR says
If you want to test the functionality in v1.42.0, try this: SELECT 1 + '0 foo'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds support for the automatic displaying of warnings after a SQL statement is executed. Addresses feature request from issue #555.
May be set with:
Note there is currently some errors from mypy about Cursor.warning_count, however I already submitted a PR to typeshed to get that updated so the errors will go away once the change makes it into mypy for types-PyMySQL.
python/typeshed#15150 (comment)
Checklist
changelog.md.AUTHORSfile (or it's already there).uv run ruff check && uv run ruff format && uv run mypy --install-types .to lint and format the code.