elixir-ecto / db_connection

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

Do not implictly close queries when describe/encode raises or execute returns error #8

Closed fishcakez closed 8 years ago

fishcakez commented 8 years ago

The code is awkward and inconsistent as we can not close on a decode error on prepare_execute as the connection is checked in at that point.

At some point in future we may need to provide helpers to limit prepared queries at adapter level. It should not be done automatically as adapter sits between db_connection and database.