I am writing a SQL query evaluator and I am using JSQLParser for parsing the query. Now it seems (and also suggested by this link http://sourceforge.net/p/jsqlparser/feature-requests/2/ ) that JSQLParser does not allow multiple items in the FROM Clause of SQL.
When I do
statement.getFromItem().toString();
where statement is an object of type PlainSelect
, I get only the first tablename from the FROM Clause. There is no toArray()
method in the FromItem Class.
Is there any workaround for this ?