Commit 978e3d4d authored by unknown's avatar unknown

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

Fix name of function in warning message.


sql/item_timefunc.cc:
  Fix error message in extract_date_time(); ("str_to_time" -> "str_to_date")
parent b32b06f0
......@@ -597,7 +597,7 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment