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

CSV: Table marked as crashed and should be repaired

    XMLWordPrintable

Details

    Description

      MariaDB [test]> SET sql_mode='NO_ZERO_DATE';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> DROP TABLE IF EXISTS t1;
      Query OK, 0 rows affected (0.02 sec)
       
      MariaDB [test]> CREATE TABLE t1 (c1 DATE NOT NULL) ENGINE=CSV;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> INSERT IGNORE INTO t1 VALUES();
      Query OK, 1 row affected, 1 warning (0.01 sec)
       
      MariaDB [test]> SHOW WARNINGS;
      +---------+------+-----------------------------------------+
      | Level   | Code | Message                                 |
      +---------+------+-----------------------------------------+
      | Warning | 1364 | Field 'c1' doesn't have a default value |
      +---------+------+-----------------------------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> SELECT * FROM t1;
      ERROR 1194 (HY000): Table 't1' is marked as crashed and should be repaired
      

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              nirbhay_c Nirbhay Choubey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.