Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
N/A
-
None
-
Not for Release Notes
Description
The commit comment (which will likely become a source of documentation) says that TO_DATE function supports IW format element, but it is not so, it is only supported by TO_CHAR. Same in Oracle, so it's just a documentation issue.
|
bb-12.3-MDEV-19683-to_date f45636ea81a5a02444833e993e47c262ed52f384 |
MariaDB [test]> SELECT TO_CHAR(CURRENT_DATE,'IW') AS x; |
+------+ |
| x |
|
+------+ |
| 2 |
|
+------+ |
1 row in set (0.001 sec) |
 |
MariaDB [test]> SELECT TO_DATE('2','IW') AS x; |
ERROR 3047 (HY000): Invalid argument error: date format not recognized at IW in function to_date. |
Attachments
Issue Links
- is caused by
-
MDEV-19683 Add support for Oracle TO_DATE()
-
- In Testing
-