mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -2542,6 +2542,12 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
println();
|
||||
|
||||
x.getSubQuery().accept(this);
|
||||
|
||||
if (x.isWithCheckOption()) {
|
||||
println();
|
||||
print0(ucase ? "WITH CHECK OPTION" : "with check option");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -3227,7 +3233,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
print0(ucase ? "CREATE " : "create ");
|
||||
|
||||
if (x.isOrReplace()) {
|
||||
print0(ucase ? "OR REPLEACE " : "or repleace ");
|
||||
print0(ucase ? "OR REPLACE " : "or replace ");
|
||||
}
|
||||
|
||||
print0(ucase ? "TRIGGER " : "trigger ");
|
||||
|
||||
Reference in New Issue
Block a user