mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support sql-92 datatype 'DOUBLE PRECISION'
This commit is contained in:
@@ -1590,6 +1590,11 @@ public class SQLExprParser extends SQLParser {
|
||||
exprList(dataType.getArguments(), dataType);
|
||||
accept(Token.RPAREN);
|
||||
}
|
||||
|
||||
if (identifierEquals("PRECISION") && dataType.getName().equalsIgnoreCase("DOUBLE")) {
|
||||
lexer.nextToken();
|
||||
dataType.setName("DOUBLE PRECISION");
|
||||
}
|
||||
|
||||
return dataType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user