void CEvaluationEngine::onSQLTrigger(IN sqlite3_context *context, IN int argc,
IN sqlite3_value **argv)
{
- CEvaluationEngine *pEvaluationEngine = (CEvaluationEngine *)sqlite3_value_int(argv[0]);
+ CEvaluationEngine *pEvaluationEngine = (CEvaluationEngine *)sqlite3_value_int64(argv[0]);
pEvaluationEngine->onWatcherTriggered(sqlite3_value_int(argv[1]), sqlite3_value_int(argv[2]));
}
switch (pData[0])
{
case EVENT_TYPE_INNER:
- pResult = (std::vector<result_model> *)(((int *)pArg)[2]);
+ pResult = (std::vector<result_model> *)pData[2];
SAFE_DELETE(pResult);
break;
case EVENT_TYPE_OUTER:
- pDataReader = (CDataReader *)(((int *)pArg)[2]);
+ pDataReader = (CDataReader *)pData[2];
SAFE_DELETE(pDataReader);
break;
if (requestFlag & RequestHandlerFlag::RequestFlag)
{
- std::cout << "\t\trequestFlag : Request\n";
-
// If the request type is GET
if (requestType == "GET")
{
}
else if (rep.getValue<std::string>("command") == "ReleaseQueryEngine")
{
- pQueryEngine = (IQueryEngine *) std::stoi(
+ pQueryEngine = (IQueryEngine *) std::stol(
rep.getValue<std::string>("queryEngineId"));
ReleaseQueryEngine(pQueryEngine);
{
int CQID = 0;
- pQueryEngine = (IQueryEngine *) std::stoi(
+ pQueryEngine = (IQueryEngine *)std::stol(
rep.getValue<std::string>("queryEngineId"));
res = pQueryEngine->executeContextQuery(
}
else if (rep.getValue<std::string>("command") == "KillContextQuery")
{
- pQueryEngine = (IQueryEngine *) std::stoi(
+ pQueryEngine = (IQueryEngine *)std::stol(
rep.getValue<std::string>("queryEngineId"));
res = pQueryEngine->killContextQuery(std::stoi(rep.getValue<std::string>("CQID")));