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

DATETIME w/ transportable tablespaces from MySQL 5.6 to MariaDB 10.0 gives "precise type mismatch" error.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.0.12
    • Fix Version/s: 10.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      10.2.1-1, 10.2.1-2

      Description

      mysql 5.6.17 (root) [test] db1> CREATE TABLE `t1` (
          ->   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
          ->   `d` datetime DEFAULT NULL,
          ->   PRIMARY KEY (`id`)
          -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
      Query OK, 0 rows affected (0.11 sec)
       
      mysql 5.6.17 (root) [test] db1> flush table t1 for export;
      Query OK, 0 rows affected (0.01 sec)

      mysql 5.5.5-10.0.12-MariaDB (root) [test] db1> CREATE TABLE `t1` (
          ->   `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
          ->   `d` datetime DEFAULT NULL,
          ->   PRIMARY KEY (`id`)
          -> ) ENGINE=InnoDB DEFAULT CHARSET=latin1
          -> ;
      Query OK, 0 rows affected (0.08 sec)
       
      mysql 5.5.5-10.0.12-MariaDB (root) [test] db1> alter table t1 discard tablespace;
      Query OK, 0 rows affected (0.01 sec)
       
      mysql 5.5.5-10.0.12-MariaDB (root) [test] db1>
      [2]+  Stopped                 mysql
      [kolbe@centos6-build mariadb-10.0.12-linux-x86_64]$ cp ~/t1.{cfg,ibd} ./data/test/
      [kolbe@centos6-build mariadb-10.0.12-linux-x86_64]$ fg
      mysql
      mysql 5.5.5-10.0.12-MariaDB (root) [test] db1>
      mysql 5.5.5-10.0.12-MariaDB (root) [test] db1> alter table t1 import tablespace;
      ERROR 1808 (HY000): Schema mismatch (Column d precise type mismatch.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kolbe Kolbe Kegel (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated: