mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '5.5' into 10.0
This commit is contained in:
@ -190,7 +190,7 @@ bool get_date_from_daynr(long daynr,uint *ret_year,uint *ret_month,
|
||||
ulong convert_period_to_month(ulong period)
|
||||
{
|
||||
ulong a,b;
|
||||
if (period == 0)
|
||||
if (period == 0 || period > 999912)
|
||||
return 0L;
|
||||
if ((a=period/100) < YY_PART_YEAR)
|
||||
a+=2000;
|
||||
|
Reference in New Issue
Block a user