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

Arithmatic operations on SYSDATE yields in-consistent results

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5, 10.0, 10.1, 10.2.14, 10.2, 10.3
    • N/A
    • Temporal Types
    • None

    Description

      select DATE(SYSDATE()), DATE(DATE('2018-11-01')-1);
      – Results in invalid date 2018-11-00

      select DATE(SYSDATE()), DATE(DATE('2018-11-30')+1);
      – Results in NULL

      Both the cases should have returned NULL or yield expected dates as 2018-10-31 and 2018-12-01 respectively

      Attachments

        Activity

          People

            serg Sergei Golubchik
            kkuppili Kiran Kuppili
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.