当前位置:网站首页>JDBC calls the stored procedure with call and reports an error

JDBC calls the stored procedure with call and reports an error

2022-07-06 05:19:00 Hangao PG Laboratory

Henkel database
Catalog
Environmental Science
Document purpose
Details

Environmental Science
system platform :Linux x86-64 Red Hat Enterprise Linux 7
edition :6.0,4.5
Document purpose

 solve jdbc Call stored procedure to report an error Error querying database. Cause: com.highgo.jdbc.util.PSQLException: 
 error : sp_gencapacitydatasub(character varying, character varying, timestamp without time zone, timestamp without time zone, timestamp without time zone)  It's a process   Suggest : To call a procedure , Please use CALL.

Details

jdbc In default mode , Drivers always use  SELECT  sentence ( Only function calls are allowed ), This problem can be solved in jdbc Add in connection string escapeSyntaxCallMode=call To solve this problem ( Only procedure calls are allowed ),jdbc To call functions and procedures at the same time, you can add escapeSyntaxCallMode=callIfNoReturn.
原网站

版权声明
本文为[Hangao PG Laboratory]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060514509198.html