+1. For example i did a function that calls some Oracle PL/SQL stored
procedure

(defn db-read-proc [callback]
  (sql/with-connection
   db
   (with-open [stmt (.prepareCall (connection) "{call STORED_PROCEDURE
(?)}")]
     (. stmt registerOutParameter 1 -10)
     (. stmt execute)
     (callback (. stmt getObject 1)))))


I had to use internal for this, otherwise clojure complains about
missing "connection". Or maybe this function is done wrong way?

Kunnar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to