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

Date comparing false result

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 5.5.32, 5.3.12
    • 5.5.33, 5.3.13
    • None
    • None
    • 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

            bar Alexander Barkov
            bulepage bulepage
            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.