bug fixed for oracle sql parser.

This commit is contained in:
wenshao
2017-07-14 15:48:49 +08:00
parent e4eef93022
commit 9e105a68f2
3 changed files with 93 additions and 9 deletions
@@ -2170,7 +2170,8 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
@Override
public boolean visit(SQLSetStatement x) {
if (!JdbcConstants.ORACLE.equals(dbType)) {
boolean printSet = x.getAttribute("parser.set") == Boolean.TRUE || !JdbcConstants.ORACLE.equals(dbType);
if (printSet) {
print0(ucase ? "SET " : "set ");
}
printAndAccept(x.getItems(), ", ");