fix find_in_set, sleep(null), errorcode

This commit is contained in:
obdev
2023-08-02 10:18:13 +00:00
committed by ob-robot
parent 546c42df0a
commit aefb0e9afc
3 changed files with 14 additions and 7 deletions

View File

@ -110,6 +110,9 @@ int ObExprSleep::eval_sleep(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res)
if (OB_FAIL(expr.eval_param_value(ctx, sec))) {
LOG_WARN("eval arg failed", K(ret));
} else if (sec->is_null()) {
ret = OB_INVALID_ARGUMENT;
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "sleep");
LOG_WARN("invalid arguments to sleep");
} else if (OB_FAIL(get_usec(number::ObNumber(sec->get_number()), usec, calc_alloc))) {
ret = OB_SUCCESS;
} else {