File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Original file line number Diff line number Diff line change
1
+ ======================
2
+ What's new in 2.0.1
3
+ ======================
4
+
5
+ Release: 2020-07-03
6
+
7
+ * Fixed multithread safety issue in fetching row.
8
+
9
+
1
10
======================
2
11
What's new in 2.0.0
3
12
======================
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ def __init__(self, connection):
71
71
self ._executed = None
72
72
73
73
self .lastrowid = None
74
- self .messages = []
75
74
self ._result = None
76
- self ._warnings = None
77
75
self .rownumber = None
78
76
self ._rows = None
79
77
@@ -134,7 +132,6 @@ def nextset(self):
134
132
"""
135
133
if self ._executed :
136
134
self .fetchall ()
137
- del self .messages [:]
138
135
139
136
db = self ._get_db ()
140
137
nr = db .next_result ()
@@ -155,7 +152,6 @@ def _do_get_result(self, db):
155
152
self .rowcount = db .affected_rows ()
156
153
self .rownumber = 0
157
154
self .lastrowid = db .insert_id ()
158
- self ._warnings = None
159
155
160
156
def _post_get_result (self ):
161
157
pass
@@ -222,8 +218,6 @@ def executemany(self, query, args):
222
218
REPLACE. Otherwise it is equivalent to looping over args with
223
219
execute().
224
220
"""
225
- del self .messages [:]
226
-
227
221
if not args :
228
222
return
229
223
@@ -326,7 +320,6 @@ def _query(self, q):
326
320
self ._do_get_result (db )
327
321
self ._post_get_result ()
328
322
self ._executed = q
329
- self ._last_executed = q # XXX THIS IS GARBAGE: See above.
330
323
return self .rowcount
331
324
332
325
def _fetch_row (self , size = 1 ):
You can’t perform that action at this time.
0 commit comments