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

CSV: Table marked as crashed and should be repaired

    Details

    • Type: Bug
    • Status: Confirmed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.2.3, 5.5, 10.0, 10.1, 10.2
    • Fix Version/s: 10.2
    • Component/s: Server
    • Labels:

      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

              • Assignee:
                bar Alexander Barkov
                Reporter:
                nirbhay_c Nirbhay Choubey (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: