improved sql parser.

This commit is contained in:
wenshao
2017-09-22 23:21:42 +08:00
parent ee6e9879bb
commit aa957fab13
34 changed files with 1861 additions and 20 deletions
@@ -4112,6 +4112,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
print0(ucase ? "OPEN " : "open ");
print0(x.getCursorName());
List<SQLName> columns = x.getColumns();
if (columns.size() > 0) {
print('(');
printAndAccept(columns, ", ");
print(')');
}
SQLExpr forExpr = x.getFor();
if (forExpr != null) {
print0(ucase ? " FOR " : "for ");