mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for odps sql parser. issue #1455
This commit is contained in:
@@ -1639,7 +1639,12 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
|
||||
@Override
|
||||
public boolean visit(SQLAlterTableAddColumn x) {
|
||||
print0(ucase ? "ADD (" : "add (");
|
||||
boolean odps = JdbcConstants.ODPS.equals(dbType);
|
||||
if (odps) {
|
||||
print0(ucase ? "ADD COLUMNS (" : "add columns (");
|
||||
} else {
|
||||
print0(ucase ? "ADD (" : "add (");
|
||||
}
|
||||
printAndAccept(x.getColumns(), ", ");
|
||||
print(')');
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user