mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add sql parser testcases
This commit is contained in:
@@ -2152,9 +2152,12 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
print0(ucase ? "UNIQUE " : "unique ");
|
||||
}
|
||||
|
||||
print0(x.getKeyOrIndex());
|
||||
print(' ');
|
||||
|
||||
if (x.isKey()) {
|
||||
print0(ucase ? "KEY " : "key ");
|
||||
} else {
|
||||
print0(ucase ? "INDEX " : "index ");
|
||||
}
|
||||
|
||||
if (x.getName() != null) {
|
||||
x.getName().accept(this);
|
||||
print(' ');
|
||||
|
||||
Reference in New Issue
Block a user