Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38517

TO_DATE: (Documentation) 'IW' format element is said to be supported, but isn't

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • N/A
    • N/A
    • Documentation
    • 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

          Activity

            People

              monty Michael Widenius
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.