aio-libs / aio-libs/aioodbc

Connection not closed on rollback error

Abierto
#471 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
326
Forks
62
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

Seems like there is any issue where connetions aren't properly closed when the rollback throws an exception.
https://github.com/aio-libs/aioodbc/blob/62069a2ecbbc284af75a5d6cf91a1fc4a505f20b/aioodbc/connection.py#L250-L252

An example is when the original query throws:
[08S01] [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: An existing connection was forcibly closed by the remote host.

Then the rollback will also fail with the same exception and the connection won't be closed.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.