Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exception handling for stored procedure and function calls #119

Closed
souravroy opened this issue Jan 9, 2024 · 2 comments
Closed

Add exception handling for stored procedure and function calls #119

souravroy opened this issue Jan 9, 2024 · 2 comments
Assignees

Comments

@souravroy
Copy link
Collaborator

Exception handling for the below scenarios:

  1. Procedure or function does not exist
  2. Parameter type mismatch or all the required parameters are not set

For e.g. below runtime exception is thrown when the procedure is not found:

org.springframework.dao.InvalidDataAccessApiUsageException: Unable to determine the correct call signature - no procedure/function/signature for 'book_pric' at org.springframework.jdbc.core.metadata.GenericCallMetaDataProvider.processProcedureColumns(GenericCallMetaDataProvider.java:365) ~[spring-jdbc-6.1.2.jar:6.1.2]

InvalidDataAccessApiUsageException - we have to handle this and transform it into a ProblemDetail

@souravroy souravroy added enhancement New feature or request and removed enhancement New feature or request labels Jan 9, 2024
@souravroy souravroy self-assigned this Jan 9, 2024
@souravroy souravroy added the work in progress Issue that is being currently worked on label Jan 10, 2024
@souravroy
Copy link
Collaborator Author

Raised PR#
#123

@souravroy
Copy link
Collaborator Author

PR is merged.

@souravroy souravroy removed the work in progress Issue that is being currently worked on label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant