Skip to content
Closed
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
3 changes: 2 additions & 1 deletion trino/dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,8 @@ def cancel(self):
self._query.cancel()

def close(self):
self.cancel()
if self._query is not None:
self.cancel()
# TODO: Cancel not only the last query executed on this cursor
# but also any other outstanding queries executed through this cursor.

Expand Down