mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps sql parser, support more 'change column' syntax.
This commit is contained in:
@@ -888,4 +888,13 @@ public class OdpsOutputVisitor extends SQLASTOutputVisitor implements OdpsASTVis
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(SQLAlterTableRenameColumn x) {
|
||||
print0(ucase ? "CHANGE COLUMN " : "change column ");
|
||||
x.getColumn().accept(this);
|
||||
print0(ucase ? " RENAME TO " : " rename to ");
|
||||
x.getTo().accept(this);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user