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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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;

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 737111

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 737111

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: