Adding "const" qualifier to arguments of date2my_decimal()

and ErrConvString::ErrConvString(String *).
This commit is contained in:
Alexander Barkov
2015-10-22 09:11:23 +04:00
parent bdc03e0579
commit e498d32625
3 changed files with 3 additions and 3 deletions

View File

@ -320,7 +320,7 @@ my_decimal *seconds2my_decimal(bool sign,
}
my_decimal *date2my_decimal(MYSQL_TIME *ltime, my_decimal *dec)
my_decimal *date2my_decimal(const MYSQL_TIME *ltime, my_decimal *dec)
{
longlong date= (ltime->year*100L + ltime->month)*100L + ltime->day;
if (ltime->time_type > MYSQL_TIMESTAMP_DATE)