Details
-
Bug
-
Status: Resolved
-
Not specified
-
Resolution: Fixed
-
None
-
None
-
None
-
JDBC Driver test code attempts to prepare a query (compiles a WU), then execute that prepared query with various input parameters (execute the compiled WU) with input params bound to it
Description
preparedSQL = hpccConnection.prepareSQL(sqlQuery);
if (preparedSQL == null || preparedSQL.getWuid().isEmpty())
throw new SQLException(" could not be prepared.");
Thread.sleep(5000); //give it a chance to compile
//if (Workunit.translateWUState(preparedSQL.getState()) != WUState.COMPILED) for some reason, we can get a:
//"Attempting to execute a workunit that hasn't been compiled" even if we get a "compiled" state!
ExecutePreparedSQLResponse executePreparedSQL = hpccConnection.executePreparedSQL(preparedSQL.getWuid(), variables);