bug fixed for oracle sql parser. for issue #1931

This commit is contained in:
wenshao
2017-10-03 02:13:11 +08:00
parent c0f436ea41
commit 98496a2e5d
2 changed files with 63 additions and 1 deletions
@@ -4885,8 +4885,9 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
public boolean visit(MergeInsertClause x) {
print0(ucase ? "WHEN NOT MATCHED THEN INSERT" : "when not matched then insert");
if (x.getColumns().size() > 0) {
print(' ');
print(" (");
printAndAccept(x.getColumns(), ", ");
print(')');
}
print0(ucase ? " VALUES (" : " values (");
printAndAccept(x.getValues(), ", ");