procedure is containing some truncate queries like -- EXECUTE('truncate table abc');
It's not throwing any exception but not executing the procedure.Using oracle query -- sess.createSQLQuery("{ call procedure() }").executeUpdate(); procedure execution is working fine.
What's need to be change here.
More information would help:
1) Postgres version.
2) JDBC driver and version?
3) Any relevant information from the Postgres logs.
The forthcoming Postgres version 11 will have stored procedures, but at the moment Postgres has only stored functions.
Postgres Version -- 9.5
JDBC Driver - org.postgresql.Driver
JDVC driver version and relavant postgres logs didn't get.