mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve Oracle SQL Parser, support syntax : varchar2(20 char)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user