My statement is
new_call.cdctype=goal.cdctype
When I call the method CCJSqlParser.SQLCondition() on this, I get an exception saying
Encountered " "=" "= "" at line 1, column 17.
Was expecting one of:
"NOT" ...
"LIKE" ...
"ILIKE" ...
"NOT" ...
"NOT" ...
Any insight on why this happens? I am checking join conditions and I think that this is an appropriate expression for join condition.
Code:
String sql = "new_call.cdctype=goal.cdctype";
CCJSqlParser parser = new CCJSqlParser(new StringReader(sql));
String errorMsg=null;
try {
parser.SQLCondition();
} catch (ParseException e) {
errorMsg=e.getMessage();
}
return errorMsg;