Can anybody figure out how I can type hint this adequately? Not only does
it result in reflection, but because a Fn is both a Runnable and Callable,
it can result in runtime incorrectness:
https://gist.github.com/fredericksgary/6058783
--
Gary Fredericks
(803)-295-0195
fredericksg...@gmail.com
w
That was it. I was fixated on the ResultSet object and didn't consider
overloading. Adding the (int) hint sped things up considerably.
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.c
My guess from looking at the API documentation for ResultSet is that
it doesn't know which of the several one-parameter overloads of
getObject to choose. Presumably you want the integer one, so try
(.getObject rs (int i)).
-Per
On Fri, Mar 19, 2010 at 12:08 PM, cageface wrote:
> I'm trying to el
I'm trying to eliminate some reflection overhead in little SQL utility
I'm working on and can't seem to get the type hint right for this
code:
(import 'java.sql.ResultSet)
(set! *warn-on-reflection* true)
(defn rs-get-row [#^ResultSet rs]
(if (.next rs)
(let [cols (.. rs getMetaData getCol