[BUGFIX] fix append lob null data
This commit is contained in:
@ -127,7 +127,9 @@ int ObInsertLobColumnHelper::insert_lob_column(ObIAllocator &allocator,
|
||||
LOG_WARN("fail to get snapshot", K(ret));
|
||||
} else {
|
||||
ObString data = datum.get_string();
|
||||
ObLobLocatorV2 src(data, has_lob_header);
|
||||
// datum with null ptr and zero len should treat as no lob header
|
||||
bool set_has_lob_header = has_lob_header && data.length() > 0;
|
||||
ObLobLocatorV2 src(data, set_has_lob_header);
|
||||
// 4.0 text tc compatiable
|
||||
ObLobAccessParam lob_param;
|
||||
lob_param.tx_desc_ = tx_desc;
|
||||
|
@ -4987,6 +4987,7 @@ int ObLSTabletService::process_old_row_lob_col(
|
||||
if (has_lob_header) {
|
||||
obj.set_has_lob_header();
|
||||
}
|
||||
run_ctx.is_old_row_valid_for_lob_ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5190,6 +5191,7 @@ int ObLSTabletService::delete_lob_tablet_rows(
|
||||
ObLobCommon *lob_common = nullptr;
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < col_cnt; ++i) {
|
||||
const ObColDesc &column = run_ctx.col_descs_->at(i);
|
||||
if (column.col_type_.is_lob_storage()) {
|
||||
ObObj &obj = tbl_row.row_val_.get_cell(i);
|
||||
const ObObj &sql_obj = row.get_cell(i);
|
||||
ObLobAccessParam lob_param;
|
||||
@ -5198,6 +5200,7 @@ int ObLSTabletService::delete_lob_tablet_rows(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user