MySQL 5.7 STR_TO_DATE
Estoy ejecutando MySQL 5.7 y quería convertir algunas cadenas hasta la fecha. Remití el manual aquí:http://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_str-to-date
Y probé lo siguiente (tenga en cuenta la versión de MySQL)
mysql> SELECT STR_TO_DATE('9','%m');
+-----------------------+
| STR_TO_DATE('9','%m') |
+-----------------------+
| NULL |
+-----------------------+
1 row in set, 1 warning (0.00 sec)
mysql> show warnings;
+---------+------+--------------------------------------------------------+
| Level | Code | Message |
+---------+------+--------------------------------------------------------+
| Warning | 1411 | Incorrect datetime value: '9' for function str_to_date |
+---------+------+--------------------------------------------------------+
1 row in set (0.00 sec)
Pero del manual en línea para MySQL 5.7, debería ver lo siguiente:
mysql> SELECT STR_TO_DATE('9','%m');
-> '0000-09-00'
¿Hay algo que me falta, o podría ser un error?