use of com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlOptimizeStatement in project druid by alibaba.
the class MySqlStatementParser method parseOptimize.
public MySqlOptimizeStatement parseOptimize() {
accept(Token.OPTIMIZE);
accept(Token.TABLE);
MySqlOptimizeStatement stmt = new MySqlOptimizeStatement();
List<SQLName> names = new ArrayList<SQLName>();
this.exprParser.names(names, stmt);
for (SQLName name : names) {
stmt.addTableSource(new SQLExprTableSource(name));
}
return stmt;
}
Aggregations