improved sql parser. bug fixed for oracle extract function. issue #1481

This commit is contained in:
wenshao
2016-11-25 17:28:26 +08:00
parent 8b8a3f9e50
commit 51a9a616dc
13 changed files with 93 additions and 210 deletions
@@ -631,6 +631,13 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
printFunctionName(x.getMethodName());
print('(');
printAndAccept(x.getParameters(), ", ");
SQLExpr from = x.getFrom();
if (from != null) {
print0(ucase ? " FROM " : " from ");
from.accept(this);
}
print(')');
return false;
}