Code: Select all
sql = "SELECT SUM(SCORE)as SUMA FROM SCORES WHERE NAME ='"+_server.escapeQuotes(params.nombre)+"'"
sql += " AND GC='" +_server.escapeQuotes(gc)+ "'"
trace ("78 SQL= "+sql)
queryRes = dbase.executeQuery(sql)
tempRow = queryRes.get(0);
var cp = tempRow.getItem("SUMA");
trace("84 "+cp)
var o = {};
o._cmd = "scores"
o.vecScores = cp
_server.sendResponse(o, currentRoomId);
}
and I get the right answer (900), but after this the extension gives an error and does not return the result:
can anybody tell me what is happening? I've already checked all the posts on this problem that I could find (908,3612,4166), even tried using as you suggest
Code: Select all
_server.executeQuery(theSql, _server.QUERY_INT_KEYS)
but then the extension fails saying it cannot find the function executeQuery.
Do you know what is happening?
Thanks,
Mariana