Bug #27014: Imperfect error/warning message for STR_TO_DATE for invalid datetime value

Fix name of function in warning message.
This commit is contained in:
tsmith@ramayana.hindu.god 2007-08-30 23:57:39 -06:00
parent cefe7a3c8b
commit f5fdb53a35

View file

@ -597,7 +597,7 @@ err:
strmake(buff, val_begin, min(length, sizeof(buff)-1));
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_WRONG_VALUE_FOR_TYPE, ER(ER_WRONG_VALUE_FOR_TYPE),
date_time_type, buff, "str_to_time");
date_time_type, buff, "str_to_date");
}
DBUG_RETURN(1);
}