fix build error & improve pg support

This commit is contained in:
高铁
2020-10-22 18:46:56 +08:00
parent e91ea70472
commit e71c2a6e93
6 changed files with 77 additions and 6 deletions
@@ -184,7 +184,7 @@ public class SQLCreateTableParser extends SQLDDLParser {
}
public SQLPartitionBy parsePartitionBy() {
throw new ParserException("TODO " + lexer.info());
return null;
}
protected SQLTableElement parseCreateTableSupplementalLogingProps() {
@@ -3343,6 +3343,9 @@ public class SQLStatementParser extends SQLParser {
} else if (lexer.identifierEquals(Constants.RESOURCE)) {
lexer.reset(markBp, markChar, Token.CREATE);
return parseCreateResourceGroup();
} else if (lexer.token() == FOREIGN) {
lexer.reset(markBp, markChar, Token.CREATE);
return parseCreateTable();
}
throw new ParserException("TODO " + lexer.info());