I’m trying to execute an oracle procedure stored on my database, I’ve executed it sometimes but after renaming it or changing some parameters i can’t execute it from spring anymore.
I defined it like this (body and spec):
CREATE OR REPLACE PACKAGE PTR_GRUPOS_TRABAJO
AS
PROCEDURE UDPATE_DIA (
--some parameters here
);
And i create the SimpleJdbcCall like this:
pActualizaDia = new SimpleJdbcCall(dataSource).withCatalogName("PTR_GRUPOS_TRABAJO").withProcedureName("UPDATE_DIA");
After setting (properly) every parameter it fails. I’ve tried even setting withoutProcedureColumnMetaDataAccess and declaring each parameter, but although this time i get every ? (parameter) in my query, it still complains about not finding the procedure, like this.
org.springframework.jdbc.BadSqlGrammarException: CallableStatementCallback; bad SQL grammar [{call PTR_GRUPOS_TRABAJO.UPDATE_DIA()}];
What is wrong? Thank you
All right…
the database procedure was called UDPATE_DIA instead of UPDATE_DIA. It was a given procedure and I’m a bit dyslexic.
Thank you Ollie anyway, I deserve death and destruction.