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

CREATE TABLE accepts and ignores parameters for geometry types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.2, 10.3, 10.4, 10.5
    • Fix Version/s: 10.6
    • Component/s: GIS, Parser
    • Labels:
      None

      Description

      MariaDB [test]> create table t (a point(1,2));
      Query OK, 0 rows affected (0.023 sec)
       
      MariaDB [test]> show create table t;
      +-------+------------------------------------------------------------------------------------+
      | Table | Create Table                                                                       |
      +-------+------------------------------------------------------------------------------------+
      | t     | CREATE TABLE `t` (
        `a` point DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+------------------------------------------------------------------------------------+
      1 row in set (0.001 sec)
      

      Same with other geometry types.
      I couldn't find in documentation why POINT(x,y) would be accepted as a data type.
      If there is an intention behind it, maybe it needs to be documented.
      MySQL 5.7, 8.0 return a syntax error.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration