10000 set unbuffered_active = False before error raise by ppd0705 · Pull Request #810 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

set unbuffered_active = False before error raise #810

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 4 commits into from
Sep 13, 2019

Conversation

ppd0705
Copy link
Contributor
@ppd0705 ppd0705 commented Sep 3, 2019

While SSCursor closing for recieved a ERROR packet, the client try to _finish_unbuffered_query because unbuffered_active is still True, but the server would not send packets anymore.

err.raise_mysql_exception(self._data)
self.raise_error()

def raise_error(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def raise_error(self):
def raise_for_error(self):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

@methane methane merged commit f8c31d4 into PyMySQL:master Sep 13, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
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.

2 participants
0