korma/Korma — pull request #99 by mccraigmccraig (2012-11-29 09:28:29+00:00)
Title: don't get-connection when there is already an open connection

(same as pull-request 88 https://github.com/korma/Korma/pull/88 but without the private maven groupid commit)

---

if there is an open connection, as found by (jdbc/find-connection), do-query was calling get-connection and then ignoring the results in favour of the already open connection

this patch avoids calling get-connection when there is an already open connection, which permits a connection to be opened outside of korma