From 331133f2ee14bb845bfd601da2d5e548bf3327fb Mon Sep 17 00:00:00 2001 From: Sanjula Ganepola Date: Thu, 29 Aug 2024 17:22:25 -0400 Subject: [PATCH 1/2] Make pool constructor public Signed-off-by: Sanjula Ganepola --- src/main/java/io/github/mapepire_ibmi/Pool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/mapepire_ibmi/Pool.java b/src/main/java/io/github/mapepire_ibmi/Pool.java index 6975c0d..b3899eb 100644 --- a/src/main/java/io/github/mapepire_ibmi/Pool.java +++ b/src/main/java/io/github/mapepire_ibmi/Pool.java @@ -50,7 +50,7 @@ public class Pool { * * @param options The options for configuring the connection pool. */ - Pool(PoolOptions options) { + public Pool(PoolOptions options) { this.options = options; } From ed33ded8cec32571cb1a585171257c3907342dfe Mon Sep 17 00:00:00 2001 From: Sanjula Ganepola Date: Thu, 29 Aug 2024 17:22:31 -0400 Subject: [PATCH 2/2] Fix clCommand Signed-off-by: Sanjula Ganepola --- src/main/java/io/github/mapepire_ibmi/SqlJob.java | 2 +- src/test/java/io/github/mapepire_ibmi/CLTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/mapepire_ibmi/SqlJob.java b/src/main/java/io/github/mapepire_ibmi/SqlJob.java index f98bba5..89c721c 100644 --- a/src/main/java/io/github/mapepire_ibmi/SqlJob.java +++ b/src/main/java/io/github/mapepire_ibmi/SqlJob.java @@ -682,7 +682,7 @@ public CompletableFuture setTraceConfig(ServerTraceDest dest, S * @param cmd The CL command. * @return A new Query instance for the command. */ - public Query clcommand(String cmd) { + public Query clCommand(String cmd) { QueryOptions options = new QueryOptions(); options.setIsClCommand(true); return new Query(this, cmd, options); diff --git a/src/test/java/io/github/mapepire_ibmi/CLTest.java b/src/test/java/io/github/mapepire_ibmi/CLTest.java index 5270840..51d3a09 100644 --- a/src/test/java/io/github/mapepire_ibmi/CLTest.java +++ b/src/test/java/io/github/mapepire_ibmi/CLTest.java @@ -15,7 +15,7 @@ void validCLCommand() throws Exception { SqlJob job = new SqlJob(); job.connect(MapepireTest.getCreds()).get(); - Query query = job.clcommand("WRKACTJOB"); + Query query = job.clCommand("WRKACTJOB"); QueryResult result = query.execute().get(); job.close(); @@ -28,7 +28,7 @@ void invalidCLCommand() throws Exception { SqlJob job = new SqlJob(); job.connect(MapepireTest.getCreds()).get(); - Query query = job.clcommand("INVALIDCOMMAND"); + Query query = job.clCommand("INVALIDCOMMAND"); QueryResult result = query.execute().get(); job.close();