mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser. issue #1898
This commit is contained in:
@@ -652,6 +652,12 @@ public class SQLExprParser extends SQLParser {
|
||||
lexer.nextToken();
|
||||
sqlExpr = new SQLBooleanExpr(false);
|
||||
break;
|
||||
case BITS: {
|
||||
String strVal = lexer.stringVal();
|
||||
lexer.nextToken();
|
||||
sqlExpr = new SQLBinaryExpr(strVal);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new ParserException("ERROR" + lexer.info());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user