use of com.alibaba.cobar.parser.ast.expression.primary.function.cast.Convert in project cobar by alibaba.
the class MySQLExprParser method functionConvert.
/**
* first '(' has been consumed
*/
private Convert functionConvert() throws SQLSyntaxErrorException {
Expression expr = expression();
match(KW_USING);
String tempStr = lexer.stringValue();
match(IDENTIFIER);
match(PUNC_RIGHT_PAREN);
Convert cvt = new Convert(expr, tempStr);
cvt.setCacheEvalRst(cacheEvalRst);
return cvt;
}
Aggregations