This is an automated email from the ASF dual-hosted git repository.

pcristof pushed a commit to branch OPENJPA-2940
in repository https://gitbox.apache.org/repos/asf/openjpa.git

commit b7db3dd2f9a446e4b8301b9fded1098ed280bba9
Author: Maxim Solodovnik <solo...@apache.org>
AuthorDate: Wed Jun 18 17:04:50 2025 +0700

    [OPENJPA-2938] maxIdle property is properly set
---
 .../main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
 
b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
index 51cfa8d04..07301ec3d 100644
--- 
a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
+++ 
b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/DBCPDriverDataSource.java
@@ -188,7 +188,7 @@ extends SimpleDriverDataSource implements Configurable, 
Closeable {
 
         // set some default properties for DBCP
         String maxActiveKey = hasKey(dbcpProps, "maxActive");
-        if (maxActiveKey == null) {
+        if (hasKey(dbcpProps, "maxActive") == null) {
             dbcpProps.setProperty("maxActive", "10");
             maxActiveKey = "maxActive";
         }

Reply via email to