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

DAYNAME() behaves like WEEKDAY() in numeric context

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.3.12, 5.5.36, 10.0.9
    • 10.2
    • None
    • None

    Description

      mysql> select weekday(now()),dayname(now()),dayname(now())+1;
      +----------------+----------------+------------------+
      | weekday(now()) | dayname(now()) | dayname(now())+1 |
      +----------------+----------------+------------------+
      |              2 | Wednesday      |                3 |
      +----------------+----------------+------------------+
      1 row in set (0.00 sec)

      3 is wrong for the third column.
      It's not clear why 'Wednesday'+1 should return 3.
      The expected result is 1 with a warning.

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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