1. Prepared statementisDone is incorrectly false here:
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();
QueryOptions options = new QueryOptions(false, false, Arrays.asList("TABLE_NAME", "LONG_COMMENT", "CONSTRAINT_NAME"));
Query<Object> query = job.query("SELECT * FROM SAMPLE.SYSCOLUMNS WHERE COLUMN_NAME IN (?, ?, ?)", options);
QueryResult<Object> result = query.execute(30).get();
assertTrue(result.getIsDone());
isDone is correctly true here:
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();
Query<Object> query = job.query("SELECT * FROM SAMPLE.SYSCOLUMNS WHERE COLUMN_NAME IN ('TABLE_NAME', 'LONG_COMMENT', 'CONSTRAINT_NAME')");
QueryResult<Object> result = query.execute(30).get();
assertTrue(result.getIsDone());
2. DROP TABLE queryisDone is incorrectly false here:
SqlJob job = new SqlJob();
job.connect(MapepireTest.getCreds()).get();
Query<Object> query = job.query("DROP TABLE IF EXISTS SAMPLE.DELETE");
QueryResult<Object> result = query.execute().get();
assertTrue(result.getIsDone());
Reproducible using tests cases in https://github.com/Mapepire-IBMi/mapepire-java/pull/40
1. Prepared statement
isDone
is incorrectlyfalse
here:isDone
is correctlytrue
here:2. DROP TABLE query
isDone
is incorrectlyfalse
here: