elixir-ecto / db_connection

Database connection behaviour
http://hexdocs.pm/db_connection/DBConnection.html
309 stars 112 forks source link

Allow running cleanup in failed transactions #85

Closed fishcakez closed 7 years ago

fishcakez commented 7 years ago

This is a crucial bug fix as cursors might not be deallocated in some drivers as the deallocation call would raise but the connection would remain open. Also we should be allowing cleanup of prepared queries with close once a transaction failed to prevent leaking statements.

This would also help with #82 as deallocate in terminate/2 would always be possible.