[mysql json] json table error message printfail
This commit is contained in:
parent
8800e46070
commit
2945f5bf28
@ -2067,7 +2067,6 @@ int JtColNode::process_default_value_pre_mysql(JtScanCtx* ctx)
|
||||
ctx->is_cover_error_ = false;
|
||||
ObExpr* expr = ctx->spec_ptr_->column_exprs_.at(info.output_column_idx_);
|
||||
ObObjType dst_type = expr->datum_meta_.type_;
|
||||
char col_str[col_info_.col_name_.length()];
|
||||
if (is_emp_evaled_) {
|
||||
} else if (col_info_.on_empty_ == JSN_VALUE_DEFAULT) {
|
||||
ObExpr* default_expr = ctx->spec_ptr_->emp_default_exprs_.at(col_info_.empty_expr_id_);
|
||||
@ -2075,8 +2074,7 @@ int JtColNode::process_default_value_pre_mysql(JtScanCtx* ctx)
|
||||
LOG_WARN("fail to process empty default value", K(ret), K(dst_type));
|
||||
} else if (OB_FAIL(JtFuncHelpler::pre_default_value_check_mysql(ctx, emp_val_, *this))) {
|
||||
ret = OB_OPERATE_OVERFLOW;
|
||||
databuff_printf(col_str, col_info_.col_name_.length(), 0, "%s", col_info_.col_name_.length(), col_info_.col_name_.ptr());
|
||||
LOG_USER_ERROR(OB_OPERATE_OVERFLOW, "JSON_TABLE", col_str);
|
||||
LOG_WARN("fail to cast empty default value", K(ret), K(dst_type));
|
||||
} else {
|
||||
is_emp_evaled_ = true;
|
||||
}
|
||||
@ -2088,8 +2086,8 @@ int JtColNode::process_default_value_pre_mysql(JtScanCtx* ctx)
|
||||
if (OB_FAIL(get_default_value_pre_mysql(default_expr, ctx, err_val_, dst_type))) {
|
||||
LOG_WARN("fail to process empty default value", K(ret), K(dst_type));
|
||||
} else if (OB_FAIL(JtFuncHelpler::pre_default_value_check_mysql(ctx, err_val_, *this))) {
|
||||
databuff_printf(col_str, col_info_.col_name_.length(), 0, "%s", col_info_.col_name_.length(), col_info_.col_name_.ptr());
|
||||
LOG_USER_ERROR(OB_OPERATE_OVERFLOW, "JSON_TABLE", col_str);
|
||||
ret = OB_OPERATE_OVERFLOW;
|
||||
LOG_WARN("fail to cast error default value", K(ret), K(dst_type));
|
||||
} else {
|
||||
is_err_evaled_ = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user