Skip to content

Commit

Permalink
--增加类型适配,后续还需要完善
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflyhoo committed Aug 18, 2016
1 parent 23c5b61 commit 36f2c15
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,19 @@ private static int convertFieldType(DateType columnType) {
if(columnType == DateType.timestamp_){
return Fields.FIELD_TYPE_TIMESTAMP;
}
if(columnType == DateType.int2_ || columnType == DateType.int4_ || columnType == DateType.int8_ ){
return Fields.FIELD_TYPE_INT24;
}
if(columnType == DateType.decimal_){
return Fields.FIELD_TYPE_NEW_DECIMAL;
}
if(columnType == DateType.UNKNOWN){

}
return Fields.FIELD_TYPE_VARCHAR;
}


/***
* 行数据转换成mysql的数据
* @param dataRow
Expand Down

0 comments on commit 36f2c15

Please sign in to comment.