[bugfix]: avoid hang in number_to_year.
This commit is contained in:
parent
0c2eb7a69a
commit
c29c99ea9e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user