mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor sql parser.
This commit is contained in:
+19
@@ -600,4 +600,23 @@ public class SQLServerOutputVisitor extends SQLASTOutputVisitor implements SQLSe
|
||||
print0(ucase ? "GO" : "go");
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(SQLCreateUserStatement x) {
|
||||
print0(ucase ? "CREATE USER " : "create user ");
|
||||
x.getUser().accept(this);
|
||||
print0(ucase ? " WITH PASSWORD = " : " with password = ");
|
||||
|
||||
SQLExpr passoword = x.getPassword();
|
||||
|
||||
if (passoword instanceof SQLIdentifierExpr) {
|
||||
print('\'');
|
||||
passoword.accept(this);
|
||||
print('\'');
|
||||
} else {
|
||||
passoword.accept(this);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user