mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser
This commit is contained in:
@@ -1723,6 +1723,12 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
|
||||
if (x.getOn() != null) {
|
||||
print(" ON ");
|
||||
|
||||
if (x.getObjectType() != null) {
|
||||
print(x.getObjectType().name());
|
||||
print(' ');
|
||||
}
|
||||
|
||||
x.getOn().accept(this);
|
||||
}
|
||||
|
||||
@@ -1767,6 +1773,14 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Printab
|
||||
print(" MAX_USER_CONNECTIONS ");
|
||||
x.getMaxUserConnections().accept(this);
|
||||
}
|
||||
|
||||
if (x.isAdminOption()) {
|
||||
if (!with) {
|
||||
print(" WITH");
|
||||
with = true;
|
||||
}
|
||||
print(" ADMIN OPTION");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user