mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser. bug fixed for oracle extract function. issue #1481
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user