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

LP:737111 - Different behavior for TIMESTAMPADD with 0000-00-00 argument in 5.1-micro

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      In 5.1-micro , applying TIMESTAMPADD on a column that contains a value of "0000-00-00" returns "0000-00-00". In mysql-5.1, it returns NULL.

      Test case:

      CREATE TABLE t1 (f1 date);
      INSERT INTO t1 VALUES ('0000-00-00');

      SELECT TIMESTAMPADD( WEEK, 1, f1 ) FROM t1;

      Attachments

        Activity

          People

            serg Sergei Golubchik
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.