From ac368494157b78d1500aae21f528585d477803ab Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 14 Sep 2022 04:21:47 +0200 Subject: [PATCH] IDEMPIERE-5013 Implement HikariCP as a replacement for c3p0 (#1486) --- .../src/org/compiere/db/DB_Oracle.java | 3 ++- .../src/org/compiere/db/DB_PostgreSQL.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java b/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java index 6556e6e3dd..fcc45ba708 100644 --- a/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java +++ b/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java @@ -731,7 +731,8 @@ public class DB_Oracle implements AdempiereDatabase poolProperties.put("password", connection.getDbPwd()); } - HikariConfig hikariConfig = new HikariConfig(poolProperties); + HikariConfig hikariConfig = new HikariConfig(poolProperties); + hikariConfig.setDriverClassName(DRIVER); m_ds = new HikariDataSource(hikariConfig); m_connectionURL = m_ds.getJdbcUrl(); diff --git a/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java b/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java index 95e88aa790..f67fc57694 100755 --- a/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java +++ b/org.compiere.db.postgresql.provider/src/org/compiere/db/DB_PostgreSQL.java @@ -756,8 +756,9 @@ public class DB_PostgreSQL implements AdempiereDatabase if (!poolProperties.contains("password")) { poolProperties.put("password", connection.getDbPwd()); } - - HikariConfig hikariConfig = new HikariConfig(poolProperties); + + HikariConfig hikariConfig = new HikariConfig(poolProperties); + hikariConfig.setDriverClassName(DRIVER); m_ds = new HikariDataSource(hikariConfig); m_connectionURL = m_ds.getJdbcUrl();