HikariCP with PostgreSQL: setQueryTimeout(int) is not yet implemented

前端 未结 2 1759
盖世英雄少女心
盖世英雄少女心 2021-01-23 09:19

I tried to use HikariCP with PostgreSQL but it doesn\'t work. It throws an exception:

WARN  [2014-10-24 14:38:54,195] com.zaxxer.hikari.pool.HikariPool: Exceptio         


        
相关标签:
2条回答
  • 2021-01-23 10:02

    Don't use a connectionTestQuery. Allow HikariCP to follow its default behavior of using the Connection.isValid() method. This requires a JDBC4 driver.

    0 讨论(0)
  • 2021-01-23 10:02

    Version 42.2.0 (or higher) implements set/get network timeout.

    0 讨论(0)
提交回复
热议问题