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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • 1.0.3
    • ExeMgr
    • 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

              Unassigned Unassigned
              jswanhart Justin Swanhart (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.