fix load data handle empty filed bug

This commit is contained in:
bf0
2021-07-27 20:24:13 +08:00
committed by wangzelin.wzl
parent 0b7773c43f
commit 2b51e4f001
2 changed files with 13 additions and 2 deletions

View File

@ -147,6 +147,15 @@ public:
return ret_bool;
}
static inline bool is_zero_field(const common::ObString& field_str)
{
int ret_bool = false;
if (field_str.length() == 2 && field_str.ptr()[0] == '\xff' && field_str.ptr()[1] == '\xff') {
ret_bool = true;
}
return ret_bool;
}
static common::ObString escape_quotation(const common::ObString& value, common::ObDataBuffer& data_buf);
static int init_empty_string_array(common::ObIArray<common::ObString>& new_array, int64_t array_size);