[CP] when column default is , add plan fail

This commit is contained in:
obdev
2022-05-10 15:50:28 +08:00
committed by wangzelin.wzl
parent dfc537e23c
commit a8a604e10e
2 changed files with 8 additions and 1 deletions

View File

@ -701,6 +701,9 @@ int ObStaticEngineExprCG::alloc_const_frame(
ObDatum* datum = reinterpret_cast<ObDatum*>(frame_mem + j * DATUM_EVAL_INFO_SIZE);
datum->ptr_ = frame_mem + rt_expr->res_buf_off_;
datum->from_obj(tmp_obj);
if (0 == datum->len_) {
datum->ptr_ = NULL;
}
}
}
if (OB_SUCC(ret) && OB_FAIL(frame_ptrs.push_back(frame_mem))) {