[BUGFIX] fix ObTextStringIter deconstruct after allocator
This commit is contained in:
@ -161,11 +161,11 @@ int calc_initcap_expr(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res_datum)
|
||||
}
|
||||
}
|
||||
} else { // text tc
|
||||
ObEvalCtx::TempAllocGuard alloc_guard(ctx);
|
||||
ObIAllocator &calc_alloc = alloc_guard.get_allocator();
|
||||
ObTextStringIter input_iter(expr.args_[0]->datum_meta_.type_, cs_type,
|
||||
arg_datum->get_string(),
|
||||
expr.args_[0]->obj_meta_.has_lob_header());
|
||||
ObEvalCtx::TempAllocGuard alloc_guard(ctx);
|
||||
ObIAllocator &calc_alloc = alloc_guard.get_allocator();
|
||||
ObTextStringDatumResult output_result(expr.datum_meta_.type_, &expr, &ctx, &res_datum);
|
||||
int64_t input_byte_len = 0;
|
||||
int64_t buf_size = 0;
|
||||
|
||||
Reference in New Issue
Block a user