Affects Version/s: None
Fix Version/s: None
Environment:OS X 10.8.3
java.jdbc 0.2.1 (the problem also seems to be there in HEAD at the time of logging this)
I use an agent to offload email processing and update a db on completion. If I use a c3p0 connection pool, I get an exception and a complaint that the connection isn't open (see stacktrace). The code works if I wrap the agent fn in a clojure.java.jdbc/with-connection and get a connection from the pool in the agent thread.
The in jdbc.clj, the find-connection (db-find-connection in HEAD) checks for an existing connection and tries to use it without checking if it's open. This causes an exception with a c3p0 connection that was acquired in another thread.
Here's the stacktrace I'm seeing (note the "You can't operate on a closed Connection!!!"):