Skip to content

Commit

Permalink
Merge pull request #2621 from jsoizo/add_hikaricp_exception_override
Browse files Browse the repository at this point in the history
Add exceptionOverrideClassName config for HikariCP
  • Loading branch information
mergify[bot] committed Dec 12, 2022
2 parents e91e8a4 + ddc9030 commit 9a885b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -44,6 +44,7 @@ object HikariCPJdbcDataSource extends JdbcDataSourceFactory {

// Frequently used pool configuration
c.getBooleanOpt("autoCommit").foreach(hconf.setAutoCommit)
c.getStringOpt("exceptionOverrideClassName").foreach(hconf.setExceptionOverrideClassName)

val numThreads = c.getIntOr("numThreads", 20)

Expand Down
1 change: 1 addition & 0 deletions slick/src/main/scala/slick/jdbc/JdbcBackend.scala
Expand Up @@ -266,6 +266,7 @@ trait JdbcBackend extends RelationalBackend {
* connection leak. A value of 0 means leak detection is disabled. Lowest acceptable value
* for enabling leak detection is 10s.</li>
* <li>`schema` (String, optional): Default catalog for new connections.</li>
* <li>`exceptionOverrideClassName` (String, optional): SQLExceptionOverride class name</li>
* </ul>
* </li>
* <li>Driver or DataSource configuration:
Expand Down

0 comments on commit 9a885b8

Please sign in to comment.