improve SQL Parser

This commit is contained in:
wenshao
2012-12-29 16:08:29 +08:00
parent 16ed4c1078
commit a60fe40542
10 changed files with 174 additions and 32 deletions
@@ -1175,14 +1175,7 @@ public class SQLExprParser extends SQLParser {
;
}
protected SQLDataType parseCharTypeRest(SQLDataType dataType) {
if (!isCharType(dataType.getName())) {
return dataType;
}
SQLCharactorDataType charType = new SQLCharactorDataType(dataType.getName());
charType.getArguments().addAll(dataType.getArguments());
protected SQLDataType parseCharTypeRest(SQLCharactorDataType charType) {
if (identifierEquals("CHARACTER")) {
lexer.nextToken();