Fix: make error messages for st_area same as mysql

This commit is contained in:
Kedi Yang
2023-10-12 14:55:52 +08:00
parent fc85a979ab
commit f26cd7ba3a
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ int ObExprSTArea::eval_st_area(const ObExpr &expr, ObEvalCtx &ctx, ObDatum &res)
ObGeoExprUtils::geo_func_error_handle(ret, N_ST_AREA);
} else if (!std::isfinite(result)) {
ret = OB_OPERATE_OVERFLOW;
LOG_WARN("Result value is out of range in st_area", K(ret));
LOG_USER_ERROR(OB_OPERATE_OVERFLOW, "Result", N_ST_AREA);
} else {
res.set_double(result);
}