How to call an Oracle stored procedure which takes a string and a date as input and returns a refcursor as output using Clojure?
variable rc refcursor;
exec SOMEDB.PKG.GETPOSITIONS('ABC', to_date('2012-02-07','yyyy-mm-dd'), :rc)
print rc
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is how I do it. I have included a few helper
fn‘s that I use to convert strings to SQL dates.resultset-seq
NOTE: you may need to consume the entire sequence if you plan on returning it from a
fnsince the connection will close as soon as thefnreturns.