debug the query process
This commit is contained in:
parent
b596b321b5
commit
bbc1793ff4
|
@ -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);
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@ bool GeneralEvaluation::parseQuery(const string& _query)
|
|||
{
|
||||
printf("%s\n", e);
|
||||
printf(" parse query error");
|
||||
fflush(stdout);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue