Skip to content

Commit d18a52f

Browse files
committed
Fix cursor.close
1 parent a6c122f commit d18a52f

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ChangeLog
22

3+
## 0.2
4+
5+
### 0.2.0
6+
7+
- Fix `cursor.close`.
8+
39
## 0.1
410

511
### 0.1.9

asyncmy/cursors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ async def close(self):
456456
return
457457

458458
if self._result is not None and self._result is conn._result:
459-
self._result._finish_unbuffered_query()
459+
await self._result._finish_unbuffered_query()
460460

461461
try:
462462
while await self.nextset():

asyncmy/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.1.9"
1+
__VERSION__ = "0.2.0"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "asyncmy"
3-
version = "0.1.9"
3+
version = "0.2.0"
44
description = "A fast asyncio MySQL driver"
55
authors = ["long2ice <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)