Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Fix: close pool not conn
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Feb 13, 2024
1 parent 69441e5 commit 5ab6c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/dbapi/api/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ async def connect(self):
print(e)

def close(self):
if self.conn is not None:
self.cursor.close()
if self.pool is not None:
self.pool.close()

async def run(self, query, singleObject = False):
if not self.pool:
Expand Down

0 comments on commit 5ab6c2a

Please sign in to comment.