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

Date comparing false result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.5.32, 5.3.12
    • Fix Version/s: 5.5.33, 5.3.13
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux

      Description

      set @h0="20111107";
      set @h1="0";
      select
      COALESCE(date(@h0),date("1901-01-01")) as h0d,
      COALESCE(date(@h1),date(now())) as h1d,
      COALESCE(date(@h0),date("1901-01-01"))>COALESCE(date(@h1),date(now())) as compare_h0_gt_h1;

      Date comparing is true in 5.5.32 but in 5.5.30 is false. False is the good result.

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            bulepage bulepage
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: