mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support pgsql function tablesource
This commit is contained in:
@@ -1081,6 +1081,11 @@ public class SQLExprParser extends SQLParser {
|
||||
|
||||
SQLName typeExpr = name();
|
||||
String typeName = typeExpr.toString();
|
||||
|
||||
if ("character".equalsIgnoreCase(typeName) && "varying".equalsIgnoreCase(lexer.stringVal())) {
|
||||
typeName += ' ' + lexer.stringVal();
|
||||
lexer.nextToken();
|
||||
}
|
||||
|
||||
SQLDataType dataType = new SQLDataTypeImpl(typeName);
|
||||
return parseDataTypeRest(dataType);
|
||||
|
||||
Reference in New Issue
Block a user