Rob: did you try using the statement object instead of CallableStatement? your problem is different than just calling a stored procedure. So you can not just use CallableStatement interface on your sql statement. Your function is embedded in your sql statement, so it is the query that will call the stored procedure at the database end of things.
It is like executing the following:
"select UPPER(name) from customer where...". You would use a statement, even though the SQL statement calls the function UPPER() which is a DB Stored procedure. You don't have to use callable statements and the like because the DB takes care of the calls from the SQL query. Since you are able to execute myFunc from a query using TOAD,
you should have no problem using the same query with myFunc in it using a Statement or PreparedStatement.
let me know if this works,
If it doesn't, then you'll have to do some messy workarounds.
Jamie
[ February 21, 2002: Message edited by: Jamie Robertson ]
[ February 21, 2002: Message edited by: Jamie Robertson ]