patch 4.0
This commit is contained in:
@ -43,23 +43,6 @@ int ObExprMakedate::calc_result_type2(ObExprResType &type,
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int ObExprMakedate::calc_result2(ObObj &result,
|
||||
const ObObj &year,
|
||||
const ObObj &day,
|
||||
ObExprCtx &expr_ctx) const
|
||||
{
|
||||
UNUSED(expr_ctx);
|
||||
int ret = OB_SUCCESS;
|
||||
if (OB_UNLIKELY(year.is_null() || day.is_null())) {
|
||||
result.set_null();
|
||||
} else if (OB_FAIL(calc(result, year.get_int(), day.get_int()))) {
|
||||
LOG_WARN("calc make date failed", K(ret));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
int ObExprMakedate::cg_expr(ObExprCGCtx &op_cg_ctx,
|
||||
const ObRawExpr &raw_expr,
|
||||
ObExpr &rt_expr) const
|
||||
@ -122,4 +105,4 @@ int ObExprMakedate::calc(T &res, int64_t year, int64_t day)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user