Java Eclipse - Blaze 顾问

Java Eclipse - Blaze Advisor

完整代码:

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")) 可以 - 打印到屏幕“185.0”,但 objectResults.kaina_viso = results.getString("suma") 给出一个错误。

objectResults.kaina_viso 是字符串类型。 结果是 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

已解决!这是 Blaze Advisor / Eclipse 或 Java 错误。 1.注释掉所有代码并保存。 2. 未注释的代码。 3. 它没有任何变化就可以工作