Skip to content

Commit

Permalink
Fix clCommand
Browse files Browse the repository at this point in the history
Signed-off-by: Sanjula Ganepola <Sanjula.Ganepola@ibm.com>
  • Loading branch information
SanjulaGanepola committed Aug 29, 2024
1 parent 331133f commit ed33ded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/github/mapepire_ibmi/SqlJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public CompletableFuture<SetConfigResult> setTraceConfig(ServerTraceDest dest, S
* @param cmd The CL command.
* @return A new Query instance for the command.
*/
public <T> Query<T> clcommand(String cmd) {
public <T> Query<T> clCommand(String cmd) {
QueryOptions options = new QueryOptions();
options.setIsClCommand(true);
return new Query(this, cmd, options);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/github/mapepire_ibmi/CLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void validCLCommand() throws Exception {
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();

Query<Object> query = job.clcommand("WRKACTJOB");
Query<Object> query = job.clCommand("WRKACTJOB");
QueryResult<Object> result = query.execute().get();
job.close();

Expand All @@ -28,7 +28,7 @@ void invalidCLCommand() throws Exception {
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();

Query<Object> query = job.clcommand("INVALIDCOMMAND");
Query<Object> query = job.clCommand("INVALIDCOMMAND");
QueryResult<Object> result = query.execute().get();
job.close();

Expand Down

0 comments on commit ed33ded

Please sign in to comment.