最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Unwrap Snowflake JDBC driver classes when when using NamedParameterJdbcTemplate - Stack Overflow

programmeradmin2浏览0评论

I'm trying to translate the Performing an asynchronous query to use NamedParameterJdbcTemplate.

I haven't found any method calls (or chains of method calls) accessible from NamedParameterJdbcTemplate which have an unwrap() function. This means the underlying Snowflake JDBC classes cannot be accessed, which means I can't initiate the asynchronous behaviours demonstrated in the example code.

A couple of suggested I stumbled across was to manually convert the SQL ? placeholders, or to manually replace the named placeholders with the values, but this seems ripe for bugs and sql injection vulnerabilities.

Has anyone managed to get get this example working using NamedParameterJdbcTemplate and is willing to share their code?

发布评论

评论列表(0)

  1. 暂无评论