[LWG] fix print lock_wait_node core error when repost failed
This commit is contained in:
@ -61,9 +61,9 @@ int ObExprToOutfileRow::calc_result_typeN(ObExprResType &type,
|
||||
types[PARAM_FIELD].set_calc_type(ObVarcharType);
|
||||
types[PARAM_FIELD].set_calc_collation_type(types[PARAM_FIELD].get_collation_type());
|
||||
// line_str
|
||||
types[PARAM_LINE].set_calc_type(ObVarcharType);
|
||||
types[PARAM_LINE].set_calc_collation_type(types[PARAM_LINE].get_collation_type());
|
||||
// closed_cht
|
||||
types[PARAM_LINE].set_calc_type(ObVarcharType);
|
||||
types[PARAM_LINE].set_calc_collation_type(types[PARAM_LINE].get_collation_type());
|
||||
// closed_cht
|
||||
types[PARAM_ENCLOSED].set_calc_type(ObVarcharType);
|
||||
types[PARAM_ENCLOSED].set_calc_collation_type(types[PARAM_ENCLOSED].get_collation_type());
|
||||
// is_optional
|
||||
@ -72,9 +72,9 @@ int ObExprToOutfileRow::calc_result_typeN(ObExprResType &type,
|
||||
types[PARAM_ESCAPED].set_calc_type(ObVarcharType);
|
||||
types[PARAM_ESCAPED].set_calc_collation_type(types[PARAM_ESCAPED].get_collation_type());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int ObExprToOutfileRow::cg_expr(ObExprCGCtx &, const ObRawExpr &, ObExpr &expr) const
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
@ -178,9 +178,9 @@ int ObExprToOutfileRow::to_outfile_str(const ObExpr &expr, ObEvalCtx &ctx, ObDat
|
||||
for (int64_t i = PARAM_SELECT_ITEM; OB_SUCC(ret) && i < expr.arg_cnt_; i++) {
|
||||
ObDatum &v = expr.locate_param_datum(ctx, i);
|
||||
const ObObjMeta &obj_meta = expr.args_[i]->obj_meta_;
|
||||
ObObj obj;
|
||||
OZ(v.to_obj(obj, obj_meta, expr.args_[i]->obj_datum_map_));
|
||||
OZ(print_field(buf, buf_len, pos, obj, *out_info));
|
||||
ObObj obj;
|
||||
OZ(v.to_obj(obj, obj_meta, expr.args_[i]->obj_datum_map_));
|
||||
OZ(print_field(buf, buf_len, pos, obj, *out_info));
|
||||
// print field terminator
|
||||
if (OB_SUCC(ret) && i != expr.arg_cnt_ - 1) {
|
||||
OZ(out_info->field_.print_plain_str_literal(buf, buf_len, pos, out_info->print_params_));
|
||||
|
||||
Reference in New Issue
Block a user