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

Converting CONNECT -> InnoDB deletes data

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0.6
    • Fix Version/s: 10.0.8
    • Component/s: None
    • Labels:
      None

      Description

      IMO, this should work, or should be prohibited to prevent disasters:

      MariaDB [test]> CREATE TABLE t (c INT NOT NULL) ENGINE=CONNECT;
      Query OK, 0 rows affected, 2 warnings (0.13 sec)
       
      Warning (Code 1105): No table_type. Will be set to DOS
      Warning (Code 1105): No file name. Table will use t.dos
      MariaDB [test]> INSERT INTO t VALUES (1), (2), (3);
      Query OK, 3 rows affected (0.00 sec)
      Records: 3  Duplicates: 0  Warnings: 0
       
      MariaDB [test]> SELECT * FROM t;
      +---+
      | c |
      +---+
      | 1 |
      | 2 |
      | 3 |
      +---+
      3 rows in set (0.01 sec)
       
      MariaDB [test]> ALTER TABLE t ENGINE = InnoDB;
      Query OK, 1 row affected (0.71 sec)                
      Records: 1  Duplicates: 0  Warnings: 0
       
      MariaDB [test]> SELECT * FROM t;
      +---+
      | c |
      +---+
      | 0 |
      +---+
      1 row in set (0.01 sec)

        Attachments

          Activity

            People

            • Assignee:
              bertrandop Olivier Bertrand
              Reporter:
              f_razzoli Federico Razzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: