Skip to content

Add JDBC exception translation support for Oracle error code ORA-06550 [SPR-9853] #14486

@spring-projects-issues

Description

@spring-projects-issues

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

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions