This works!
after I convert Date to Java::JavaSql::Date, no more exception.
here is what I did to the switch/case 'Date' code ( jdbc.rb line 392)
 when Date
    arg_to_java_date = Java::JavaSql::Date.new arg.year, arg.month,
arg.day
    cps.setDate(i, arg_to_java_date)

Should this fix be added to Sequel?


> This is probably a JRuby java integration issue.  There may be a
> direct way to fix it by adding some Java integration goo (ask the
> JRuby guys). You could also attempt to fix it in Sequel by recognizing
> ruby Date instances and transforming them into Java::JavaSql::Date
> instances before calling setDate.
>
> Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to