mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add hive sql parser
This commit is contained in:
@@ -37,7 +37,7 @@ public class SQLCreateTableParser extends SQLDDLParser {
|
||||
accept(Token.CREATE);
|
||||
}
|
||||
|
||||
SQLCreateTableStatement createTable = new SQLCreateTableStatement();
|
||||
SQLCreateTableStatement createTable = newCreateStatement();
|
||||
|
||||
if (lexer.token() == Token.IDENTIFIER && lexer.stringVal().equalsIgnoreCase("GLOBAL")) {
|
||||
lexer.nextToken();
|
||||
@@ -97,4 +97,8 @@ public class SQLCreateTableParser extends SQLDDLParser {
|
||||
|
||||
return createTable;
|
||||
}
|
||||
|
||||
protected SQLCreateTableStatement newCreateStatement() {
|
||||
return new SQLCreateTableStatement();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user