fix not support ALTER TABLE XXX ADD KEY xxx('xxx')

This commit is contained in:
bucketli
2015-04-09 14:36:45 +08:00
parent 541501cfb4
commit 1d66501ffe
5 changed files with 74 additions and 3 deletions
@@ -1990,7 +1990,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
print("UNIQUE ");
}
print("INDEX ");
print(x.getKeyOrIndex());
print(" ");
if (x.getName() != null) {
x.getName().accept(this);