Skip to content
Advertisement

procedure myProcedure (text, text) does not exist Hint: No procedure matches the given name and argument types

whenever trying calling any stored procedure in PostgreSQL 11.4 from my java application but getting this issue procedure pkg$my_procedure(text, text) does not exist. Note that I’m able to call the SP from DB.

im using PostgreSQL JDBC version 42.2.16

the SP declaration

JavaScript

Java code to call the SP

JavaScript

the Exception

JavaScript

the call from PostgreSQL

JavaScript

Advertisement

Answer

You created the stored procedure without doublequoting the name, so it is stored in lowercase.

The error message reports a functioname containing an uppercase. Since PG is case sensitive, the stored procedure is not found.

–> use a lower case function name

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement