Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-170

Invalid dates are truncacted to NULL instead of 0000-00-00

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.0.3
    • Component/s: ExeMgr
    • Labels:
      None

      Description

      MariaDB [(none)]> use test;
      Database changed
      MariaDB [test]> create table t1(d1 date) engine=myisam;
      Query OK, 0 rows affected (0.01 sec)

      MariaDB [test]> insert into t1 values (.1);
      Query OK, 1 row affected, 1 warning (0.00 sec)

      MariaDB [test]> select * from t1;
      ------------

      d1

      ------------

      0000-00-00

      ------------
      1 row in set (0.00 sec)

      MariaDB [test]> drop table t1;
      Query OK, 0 rows affected (0.00 sec)

      MariaDB [test]> create table t1(d1 date) engine=columnstore;
      Query OK, 0 rows affected (0.26 sec)

      MariaDB [test]> insert into t1 values (.1);
      Query OK, 1 row affected, 1 warning (0.22 sec)

      MariaDB [test]> select * from t1;
      ------

      d1

      ------

      NULL

      ------
      1 row in set (0.06 sec)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jswanhart Justin Swanhart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: