这是我的 DAO 代码
this.calcRTRDetails = new SimpleJdbcCall(dataSource).withCatalogName("score_rtr").
withProcedureName("calc_rtr_dtls").declareParameters(
new SqlParameter("p_repy_track", Types.ARRAY)
).returningResultSet("p_track_dtls",new RowMapper<String>() {
@Override
public String mapRow(ResultSet rs, int arg1)
throws SQLException {
// TODO Auto-generated method stub
return rs.getString(1);
}
} );
我收到以下错误
org.springframework.dao.InvalidDataAccessApiUsageException: Unable to determine the correct call signature - multiple procedures/functions/signatures for CALC_RTR_DTLS found [SCORE_RTR.SCORE.CALC_RTR_DTLS, SCORE_RTR.SCORE.CALC_RTR_DTLS]
可能是什么原因?
最佳答案
我发现我有一个非常相似的问题,我试图调用一个重载的 Postgres 函数。 Spring 3.2.3 中的解决方案是调用 withoutProcedureColumnMetaDataAccess()。
但请务必明确声明您的参数。另一种方法是为重载函数指定不同的名称。
关于oracle - 无法确定正确的调用签名 - 使用 simpleJdbcCall 时出现多个过程/函数/签名错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19686246/