Disconnect when transaction function returns unexpected status unless a commit can be turned into rollback.
The worst situation here is that a begin returns that the connection status is :transaction and we used to return it to the pool. Therefore the connection would get stuck in transaction status.
Disconnect when transaction function returns unexpected status unless a commit can be turned into rollback.
The worst situation here is that a begin returns that the connection status is
:transaction
and we used to return it to the pool. Therefore the connection would get stuck in transaction status.