debug the query process

This commit is contained in:
liwenjie 2020-07-21 09:49:11 +08:00
parent b596b321b5
commit bbc1793ff4
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,12 @@ void QueryParser::SPARQLParse(const string& query, QueryTree& querytree)
pANTLR3_BASE_TREE root = workload_ret.tree;
if (printNode(root) > 0)
throw "[ERROR] Some errors are found in the SPARQL query request.";
{
printf("[ERROR] Some errors are found in the SPARQL query request.");
fflush(stdout);
throw "[ERROR] Some errors are found in the SPARQL query request.";
}
parseWorkload(root, querytree);

View File

@ -82,6 +82,7 @@ bool GeneralEvaluation::parseQuery(const string& _query)
{
printf("%s\n", e);
printf(" parse query error");
fflush(stdout);
return false;
}