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

FROM_DAYS returns 0000-00-00 for all N in [1,365]; roundtrip broken

    XMLWordPrintable

Details

    Description

      SELECT FROM_DAYS(1), FROM_DAYS(12), FROM_DAYS(32), FROM_DAYS(365);
      -- MariaDB: all 0000-00-00   MySQL: 0000-01-01 / 0000-01-12 / 0000-02-01 / 0000-12-31
      SELECT TO_DAYS(FROM_DAYS(1)), TO_DAYS(FROM_DAYS(32));
      -- MariaDB: 0, 0   <-- TO_DAYS(FROM_DAYS(N)) ≠ N, function reciprocity broken
      -- MySQL:   1, 32
      

      Attachments

        Issue Links

          Activity

            People

              raghunandan.bhat Raghunandan Bhat
              chunlingqin chunlingqin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 2d
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Git Integration

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