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

LP:869104 - CREATE TABLE ... SELECT can result in column type "null"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5.36, 10.0.8
    • Component/s: None
    • Labels:

      Description

      CREATE TABLE t1 ENGINE = INNODB AS SELECT IF(NULL IS NOT NULL, NULL, NULL);
      SHOW CREATE TABLE t1;

      Create Table: CREATE TABLE `t1` (
      `IF(NULL IS NOT NULL, NULL, NULL)` null DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1

      Note the column type "null". This is not valid in CREATE TABLE, so for example
      a mysqldump including such a table will not be able to re-create the table.

      This is MySQL bug#54394: http://bugs.mysql.com/bug.php?id=54394

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 869104

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 869104

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                knielsen Kristian Nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: