improve Oracle SQL Parser, support syntax : varchar2(20 char)

This commit is contained in:
wenshao
2012-12-29 15:27:38 +08:00
parent 4901e6af96
commit a26df79fac
4 changed files with 155 additions and 9 deletions
@@ -20,8 +20,13 @@ import com.alibaba.druid.sql.ast.SQLDataTypeImpl;
@SuppressWarnings("serial")
public class SQLCharactorDataType extends SQLDataTypeImpl {
private String charSetName;
private String collate;
private String charSetName;
private String collate;
private String charType;
public final static String CHAR_TYPE_BYTE = "BYTE";
public final static String CHAR_TYPE_CHAR = "CHAR";
public SQLCharactorDataType(String name){
super(name);
@@ -43,4 +48,12 @@ public class SQLCharactorDataType extends SQLDataTypeImpl {
this.collate = collate;
}
public String getCharType() {
return charType;
}
public void setCharType(String charType) {
this.charType = charType;
}
}