Java Eclipse - Blaze Advisor

996 Views Asked by At

Full code:

call connect on clearsql;
sqlcommand = "select sum(distinct gedimai.gedimo_salinimo_vidkaina) as suma, count(distinct gedimai.gedimo_salinimo_vidkaina) as kiekis from atveju_simptomai left join gedimai_simptomai on gedimai_simptomai.simptomo_id = atveju_simptomai.simptomo_id left join gedimai on gedimai.id = gedimai_simptomai.gedimo_id where atveju_simptomai.atvejo_id = '8'";
set results to the outcome of executeQuery on clearsql using sqlcommand.
set resultAvailable to the outcome of next on results.
print(String.valueOf(results.getInt("suma")));
print(results.getString("suma"));
objectResults.kaina_viso = results.getString("suma");
set resultAvailable to false.
call disconnect on clearsql;

print(results.getString("suma")) is ok - prints to screen '185.0', but objectResults.kaina_viso = results.getString("suma") gives an error.

objectResults.kaina_viso is string type. results is DebResultSet

com.blazesoft.engines.rules.NdEvaluationException: Call to 'getString' failed [Microsoft][ODBC Driver 11 for SQL Server]Invalid Descriptor Index while evaluating "results.getString("suma")" in function getPriceQty

1

There are 1 best solutions below

0
On BEST ANSWER

Solved! It is Blaze Advisor / Eclipse or Java bug. 1. Commented all the code and saved. 2. Uncommented code. 3. It is working without any changes