-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Closed
Copy link
Description
Phil Barnes opened SPR-9853 and commented
When I use SimpleJdbcCall class to call DB function (executeFunction()) which doesn't exists (e.g. provde invalid schema name), then I got following message:
CallableStatementCallback; uncategorized SQLException for SQL [{? = call My_Procedure_Name SQL state [99999]; error code [17041]; Missing IN or OUT parameter at index:: 1
This message suggest that something is wrong with parameters which is not the case.
When I call a missing DB procedure (execute()) got following message:
CallableStatementCallback; bad SQL grammar [{call My_procedure_name}]; nested exception is java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00201: identifier 'My_procedure_name' must be declared
I test it on Oracle database, so you see here Oracle specific error code (ORA-06550), but this is only an example. Second message is OK - it gives information what's really wrong.
Affects: 3.1.1
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement