Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORACLE jdbc: passing a function as a parameter

 
Ioan Damian Sirbu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you tried doing this
 
Ioan Damian Sirbu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried passing the nested function as a varchar parameter and it's obviously not working
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what was the error message?
post your code to call it through jdbc
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic