Postgresql 如何在SpringBoot2.x中使用SimpleJDBCall从Postgres中的存储函数接收整个结果集?

Postgresql 如何在SpringBoot2.x中使用SimpleJDBCall从Postgres中的存储函数接收整个结果集?,postgresql,spring-boot,kotlin,spring-jdbc,jdbctemplate,Postgresql,Spring Boot,Kotlin,Spring Jdbc,Jdbctemplate,我所得到的只是结果集第一行的映射,即使函数返回了多行。我传入的行映射器从未使用过。Spring网站上的文档表明,在执行存储函数或过程时可以使用“returningResultSetFunction”,但唯一的例子是过程。由于没有带有存储函数的输出参数,我不确定该方法的第一个参数应该传入什么 在仍然使用SimpleJDBCall的情况下,有没有其他方法来遍历多行结果集,或者我只需要使用标准JdbcTemplate就可以了 // Here's my code in Kotlin return Sim

我所得到的只是结果集第一行的映射,即使函数返回了多行。我传入的行映射器从未使用过。Spring网站上的文档表明,在执行存储函数或过程时可以使用“returningResultSetFunction”,但唯一的例子是过程。由于没有带有存储函数的输出参数,我不确定该方法的第一个参数应该传入什么

在仍然使用SimpleJDBCall的情况下,有没有其他方法来遍历多行结果集,或者我只需要使用标准JdbcTemplate就可以了

// Here's my code in Kotlin
return SimpleJdbcCall(dataSource)
.withFunctionName(storedFunction).returningResultSet("param_name", RowsToMap()).execute(namedParameters)