mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser.
This commit is contained in:
+9
-1
@@ -195,7 +195,15 @@ public class MySqlCreateTableParser extends SQLCreateTableParser {
|
||||
if (lexer.token() == Token.EQ) {
|
||||
lexer.nextToken();
|
||||
}
|
||||
stmt.getTableOptions().put("ENGINE", this.exprParser.expr());
|
||||
|
||||
SQLExpr expr = null;
|
||||
if (lexer.token() == Token.MERGE) {
|
||||
expr = new SQLIdentifierExpr(lexer.stringVal());
|
||||
lexer.nextToken();
|
||||
} else {
|
||||
expr = this.exprParser.expr();
|
||||
}
|
||||
stmt.getTableOptions().put("ENGINE", expr);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -2097,7 +2097,7 @@ public class OracleOutputVisitor extends SQLASTOutputVisitor implements OracleAS
|
||||
|
||||
@Override
|
||||
public boolean visit(OracleCreateTableStatement x) {
|
||||
printCreateTable(x);
|
||||
printCreateTable(x, false);
|
||||
|
||||
if (x.getOf() != null) {
|
||||
println();
|
||||
|
||||
Reference in New Issue
Block a user