我在postgreSQL中创建了函数,并想从Java应用程序(Spring Batch)中运行它,但是我发现错误PreparedSQLCAllback显示如下:
2018-07-25 13:41:26.595 [ERROR] org.springframework.batch.core.step.AbstractStep "Encountered an error executing the step"
org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [
SELECT mstros_final_step(
8199,
'Sat Apr 28 00:00:00 ICT 2018'
)
]; A result was returned when none was expected.; nested exception is org.postgresql.util.PSQLException: A result was returned when none was expected.
我已经阅读了此处的帖子,但仍未找到解决该问题的步骤,我已经检查了该函数,java代码以及其他正常的内容。可能是什么原因导致类似的错误?谢谢