use of com.alibaba.druid.sql.dialect.oracle.ast.stmt.OracleUnique in project druid by alibaba.
the class OracleExprParser method parseUnique.
public SQLUnique parseUnique() {
accept(Token.UNIQUE);
OracleUnique unique = new OracleUnique();
accept(Token.LPAREN);
exprList(unique.getColumns(), unique);
accept(Token.RPAREN);
if (lexer.token() == Token.USING) {
OracleUsingIndexClause using = parseUsingIndex();
unique.setUsing(using);
}
return unique;
}
Aggregations