Skip to content

Remove obsolete members #437

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
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
======================
What's new in 2.0.1
======================

Release: 2020-07-03

* Fixed multithread safety issue in fetching row.


======================
What's new in 2.0.0
======================
Expand Down
7 changes: 0 additions & 7 deletions MySQLdb/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ def __init__(self, connection):
self._executed = None

self.lastrowid = None
self.messages = []
self._result = None
self._warnings = None
self.rownumber = None
self._rows = None

Expand Down Expand Up @@ -134,7 +132,6 @@ def nextset(self):
"""
if self._executed:
self.fetchall()
del self.messages[:]

db = self._get_db()
nr = db.next_result()
Expand All @@ -155,7 +152,6 @@ def _do_get_result(self, db):
self.rowcount = db.affected_rows()
self.rownumber = 0
self.lastrowid = db.insert_id()
self._warnings = None

def _post_get_result(self):
pass
Expand Down Expand Up @@ -222,8 +218,6 @@ def executemany(self, query, args):
REPLACE. Otherwise it is equivalent to looping over args with
execute().
"""
del self.messages[:]

if not args:
return

Expand Down Expand Up @@ -326,7 +320,6 @@ def _query(self, q):
self._do_get_result(db)
self._post_get_result()
self._executed = q
self._last_executed = q # XXX THIS IS GARBAGE: See above.
return self.rowcount

def _fetch_row(self, size=1):
Expand Down