[bugfix]: avoid hang in number_to_year.

This commit is contained in:
Monk-Liu 2022-07-08 11:49:52 +08:00 committed by wangzelin.wzl
parent 0c2eb7a69a
commit c29c99ea9e

View File

@ -2554,6 +2554,8 @@ static int number_year(
} else if (in.get_number().is_negative()) {
uint8_t value = 0;
if (CAST_FAIL(ObTimeConverter::int_to_year(INT_MIN, value))) {
} else {
SET_RES_YEAR(out);
}
} else {
ObObj from;