提交 331db3f5 编写于 作者: O obdev 提交者: wangzelin.wzl

CHAR_LENGTH() output incorrect results when used with subquery

上级 1799f31d
......@@ -72,7 +72,7 @@ int ObExprCharLength::eval_char_length(const ObExpr& expr, ObEvalCtx& ctx, ObDat
ObObjTypeClass in_tc = ob_obj_type_class(expr.args_[0]->datum_meta_.type_);
if (!ob_is_castable_type_class(in_tc)) {
res.set_null();
} else if (expr.eval_param_value(ctx, arg)) {
} else if (OB_FAIL(expr.eval_param_value(ctx, arg))) {
LOG_WARN("eval arg failed", K(ret));
} else if (arg->is_null()) {
res.set_null();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册