8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbb16ee + eea29eb commit 7dc1817Copy full SHA for 7dc1817
.gitignore
@@ -7,3 +7,5 @@ __pycache__
7
/.tox
8
/build
9
/pymysql/tests/databases.json
10
+
11
+/.idea
pymysql/connections.py
@@ -1267,6 +1267,9 @@ def get_server_info(self):
1267
class MySQLResult(object):
1268
1269
def __init__(self, connection):
1270
+ """
1271
+ :type connection: Connection
1272
1273
self.connection = connection
1274
self.affected_rows = None
1275
self.insert_id = None
@@ -1294,7 +1297,7 @@ def read(self):
1294
1297
else:
1295
1298
self._read_result_packet(first_packet)
1296
1299
finally:
- self.connection = False
1300
+ self.connection = None
1301
1302
def init_unbuffered_query(self):
1303
self.unbuffered_active = True
0 commit comments