mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql server parser. for issue #2346
This commit is contained in:
@@ -3829,9 +3829,17 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
x.getName().accept(this);
|
||||
print(' ');
|
||||
}
|
||||
print0(ucase ? "PRIMARY KEY (" : "primary key (");
|
||||
|
||||
print0(ucase ? "PRIMARY KEY " : "primary key ");
|
||||
|
||||
if (x.isClustered()) {
|
||||
print0(ucase ? "CLUSTERED " : "clustered ");
|
||||
}
|
||||
|
||||
print('(');
|
||||
printAndAccept(x.getColumns(), ", ");
|
||||
print(')');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user