support sql-92 datatype 'DOUBLE PRECISION'

This commit is contained in:
wenshao
2016-07-10 12:59:01 +08:00
parent aa3a4b7698
commit 22f3891d2c
2 changed files with 81 additions and 0 deletions
@@ -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;
}