Fork me on GitHub
#sql
<
2019-05-29
>
Jakub Holý (HolyJak)09:05:17

@seancorfield When I use (with-open [conn (get-connection ds)] ...) I get the reflection warning > reference to field close can't be resolved Perhaps get-connection should be type-hinted with ^java.sql.Connection as the return value?

seancorfield15:05:25

@holyjak Hmm, I'll have to check whether that's covered by the tests. I thought it was.

seancorfield16:05:30

Darn! No, the tests didn't have

(set! *warn-on-reflection* true)
They do now, and it highlights the reflection warning. https://github.com/seancorfield/next-jdbc/issues/24 Will be fixed in RC 1 (next week, unless more things are found that would suggest Beta 2).

👍 4