Commit e74249ff authored by terrymanu's avatar terrymanu
Browse files

support DESCRIBE

parent cb6b93ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import io.shardingjdbc.core.parsing.lexer.token.Keyword;
public enum MySQLKeyword implements Keyword {
    
    SHOW, 
    DESCRIBE, 
    DATABASES, 
    TABLES, 
    DUAL, 
+2 −0
Original line number Diff line number Diff line
@@ -116,6 +116,8 @@ public final class SQLParserFactory {
        }
        if (tokenType instanceof MySQLKeyword) {
            switch ((MySQLKeyword) tokenType) {
                case DESCRIBE:
                    return Optional.of(new MySQLDescParser(shardingRule, lexerEngine));
                case SHOW:
                    return Optional.of(new MySQLShowParser(lexerEngine));
                default: