fix bugs
This commit is contained in:
committed by
wangzelin.wzl
parent
ae36be9c5b
commit
1173ce6b95
@ -52,9 +52,9 @@ int ObExprToOutfileRow::calc_result_typeN(ObExprResType &type,
|
||||
if (OB_UNLIKELY(param_num <= PARAM_SELECT_ITEM)) {
|
||||
ret = OB_INVALID_ARGUMENT_NUM;
|
||||
LOG_WARN("invalid argument number", K(ret), K(param_num));
|
||||
} else {
|
||||
// deduce type and length
|
||||
type.set_varbinary();
|
||||
} else {
|
||||
// deduce type and length
|
||||
type.set_varbinary();
|
||||
// the result is only used to select into outile, so we don't care the accurate length
|
||||
type.set_length(OB_MAX_ROW_LENGTH);
|
||||
// field_str
|
||||
@ -81,9 +81,9 @@ int ObExprToOutfileRow::cg_expr(ObExprCGCtx &, const ObRawExpr &, ObExpr &expr)
|
||||
CK(expr.arg_cnt_ > PARAM_SELECT_ITEM);
|
||||
if (OB_SUCC(ret)) {
|
||||
for (int i = PARAM_FIELD; i < PARAM_SELECT_ITEM; i++) {
|
||||
if (!expr.args_[i]->is_static_const_) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("non-const format not supported", K(ret));
|
||||
if (!expr.args_[i]->is_static_const_) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("non-const format not supported", K(ret));
|
||||
}
|
||||
}
|
||||
expr.eval_func_ = &to_outfile_str;
|
||||
@ -169,9 +169,9 @@ int ObExprToOutfileRow::to_outfile_str(const ObExpr &expr, ObEvalCtx &ctx, ObDat
|
||||
ctx.exec_ctx_.get_allocator(), *out_info))) {
|
||||
LOG_WARN("fail calc outfile info", K(ret));
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
do {
|
||||
}
|
||||
if (OB_SUCC(ret)) {
|
||||
do {
|
||||
int64_t pos = 0;
|
||||
char *buf = out_info->buf_;
|
||||
int64_t buf_len = out_info->buf_len_;
|
||||
|
||||
Reference in New Issue
Block a user