Skip to content

Commit

Permalink
Ignore already removed deallocated prepared statement headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesmet committed Oct 8, 2022
1 parent 3092c4d commit 26c9f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trino/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def process(self, http_response) -> TrinoStatus:
for name in get_header_values(
http_response.headers, constants.HEADER_DEALLOCATED_PREPARE
):
self._client_session.prepared_statements.pop(name)
self._client_session.prepared_statements.pop(name, None)

self._next_uri = response.get("nextUri")

Expand Down

0 comments on commit 26c9f41

Please sign in to comment.