diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java index 2845e0a..225e33d 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java +++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java @@ -140,6 +140,7 @@ public class RDBDocumentStoreJDBC { t.append("DATA = " + stringAppend.getStatementComponent() + " "); t.append("where ").append(inClause.getStatementComponent()); PreparedStatement stmt = connection.prepareStatement(t.toString()); + stmt.setPoolable(false); try { int si = 1; stmt.setObject(si++, modified, Types.BIGINT); @@ -170,6 +171,7 @@ public class RDBDocumentStoreJDBC { PreparedStatementComponent inClause = RDBJDBCTools.createInStatement("ID", ids, tmd.isIdBinary()); String sql = "delete from " + tmd.getName() + " where " + inClause.getStatementComponent(); stmt = connection.prepareStatement(sql); + stmt.setPoolable(false); try { inClause.setParameters(stmt, 1); @@ -210,6 +212,7 @@ public class RDBDocumentStoreJDBC { } PreparedStatement stmt = connection.prepareStatement("delete from " + tmd.getName() + " where " + whereClause); + stmt.setPoolable(false); try { int i = 1; for (Entry> entry : toDelete.entrySet()) { @@ -546,6 +549,7 @@ public class RDBDocumentStoreJDBC { } PreparedStatement stmt = connection.prepareStatement(query.toString()); + stmt.setPoolable(false); List result = new ArrayList(); long dataTotal = 0, bdataTotal = 0; try {