Search in sources :

Example 1 with DMLQueryStatement

use of com.alibaba.cobar.parser.ast.stmt.dml.DMLQueryStatement in project cobar by alibaba.

the class MySQLDMLSelectParser method selectUnion.

/**
     * first token is either {@link MySQLToken#KW_SELECT} or
     * {@link MySQLToken#PUNC_LEFT_PAREN} which has been scanned but not yet
     * consumed
     * 
     * @return {@link DMLSelectStatement} or {@link DMLSelectUnionStatement}
     */
public DMLQueryStatement selectUnion() throws SQLSyntaxErrorException {
    DMLSelectStatement select = selectPrimary();
    DMLQueryStatement query = buildUnionSelect(select);
    return query;
}
Also used : DMLQueryStatement(com.alibaba.cobar.parser.ast.stmt.dml.DMLQueryStatement) DMLSelectStatement(com.alibaba.cobar.parser.ast.stmt.dml.DMLSelectStatement)

Aggregations

DMLQueryStatement (com.alibaba.cobar.parser.ast.stmt.dml.DMLQueryStatement)1 DMLSelectStatement (com.alibaba.cobar.parser.ast.stmt.dml.DMLSelectStatement)1