mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve mysql sql parser ddl support
This commit is contained in:
@@ -1144,7 +1144,7 @@ public class SQLExprParser extends SQLParser {
|
||||
|
||||
accept(Token.SET);
|
||||
|
||||
if (lexer.token() != Token.IDENTIFIER) {
|
||||
if (lexer.token() != Token.IDENTIFIER && lexer.token() != Token.LITERAL_CHARS) {
|
||||
throw new ParserException();
|
||||
}
|
||||
charType.setCharSetName(lexer.stringVal());
|
||||
|
||||
Reference in New Issue
Block a user