8000 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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
skip None result
  • Loading branch information
ppd0705 committed Sep 3, 2019
commit d8fec893eadf1f052ae5559cb9b642adf627fde8
2 changes: 1 addition & 1 deletion pymysql/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def _read_packet(self, packet_type=MysqlPacket):

packet = packet_type(bytes(buff), self.encoding)
if packet.is_error_packet():
if self._result.unbuffered_active is True:
if self._result is not None and self._result.unbuffered_active is True:
self._result.unbuffered_active = False
packet.raise_error()
return packet
Expand Down
0