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

Arithmatic operations on SYSDATE yields in-consistent results

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.2.14, 10.0
    • Fix Version/s: N/A
    • Component/s: Temporal Types
    • Labels:
      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

            Assignee:
            serg Sergei Golubchik
            Reporter:
            kkuppili Kiran Kuppili
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: