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

CREATE TABLE t1 (<defs>) SELECT... does not preserve new geometry type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • N/A
    • Data types, GIS

    Description

      DROP TABLE IF EXISTS t1,t2;
      CREATE TABLE t1 (a POINT);
      CREATE TABLE t2 (a GEOMETRY) AS SELECT * FROM t1;
      SHOW CREATE TABLE t2;
      

      +-------+-------------------------------------------------------------------------------------+
      | Table | Create Table                                                                        |
      +-------+-------------------------------------------------------------------------------------+
      | t2    | CREATE TABLE `t2` (
        `a` point DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+-------------------------------------------------------------------------------------+
      

      The expected column type for t2.a should be GEOMETRY rather than POINT.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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