I am calling a stored procedure from
java like so...
call DE.PR_NAME (? , ? , to_date(? , 'mm/dd/yyyy') , ?)
I am using a CallableSQL to call this procedure and i fill in a parameter list which results in the call shown below. I got that from a debug statement on the console.
call DE.PR_NAME (8 , 1223, to_date('04/30/2004' , 'mm/dd/yyyy'), 9)
I get the error ORA-00933 when i try to do an executeUpdate() on this SQL, however when i copy and run it on the database it works fine. Why does this problem occur ? I have also tried the same with a CallableStatement and there is no difference. I get the same error. Have any of you encountered such problems ? Please help. Java version is 1.3.1 with oracle 9i for the back end support. Here is the partial stack trace. HELP !!!
java.sql.SQLException: ORA-00933: SQL command not properly ended
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
[ August 03, 2006: Message edited by: John Meyers ]