fix load data partiton id calculation for null field

This commit is contained in:
wjhh2008
2022-11-11 12:07:16 +00:00
committed by wangzelin.wzl
parent 85d97abb91
commit d2466c38ad
2 changed files with 6 additions and 13 deletions

View File

@ -615,8 +615,6 @@ public:
if (field.is_null_
|| (0 == field.len_ && lib::is_oracle_mode())) {
obj.set_null();
} else if (0 == field.len_ && !is_string_type_column && lib::is_mysql_mode()) {
obj.set_int(0);
} else {
obj.set_varchar(field.ptr_, field.len_);
obj.set_collation_type(cs_type);