This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes ORACLE jdbc: passing a function as a parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ORACLE jdbc: passing a function as a parameter" Watch "ORACLE jdbc: passing a function as a parameter" New topic
Author

ORACLE jdbc: passing a function as a parameter

Ioan Damian Sirbu
Greenhorn

Joined: Dec 22, 2008
Posts: 18
Greetings,

My question is related to another topic, posted here http://www.coderanch.com/t/495533/Spring/Spring-JDBC-ORACLE-Looking-way#2231065

Let's say I have an ORACLE function which accepts VARCHAR parameter


I want to pass to this function another function that returns a VARCHAR2
FUNCTION get_name RETURN VARCHAR2


Basically, instead of passing directly the parameter, I want to chain them like this


Is it doable with JDBC?

Thanks
Manish Singh
Ranch Hand

Joined: Jan 26, 2007
Posts: 160
have you tried doing this
Ioan Damian Sirbu
Greenhorn

Joined: Dec 22, 2008
Posts: 18
I tried passing the nested function as a varchar parameter and it's obviously not working
Manish Singh
Ranch Hand

Joined: Jan 26, 2007
Posts: 160
what was the error message?
post your code to call it through jdbc
 
jQuery in Action, 2nd edition
 
subject: ORACLE jdbc: passing a function as a parameter