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

MIN and MAX do not preserve GEOMETRY data type

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.4
    • GIS
    • None

    Description

      MIN and MAX do not preserve the GEOMETRY and create a LONGBLOB instead:

      CREATE OR REPLACE TABLE t1 AS SELECT MAX(POINT(1,1)) AS p;
      SHOW CREATE TABLE t1;
      

      CREATE OR REPLACE TABLE t1 AS SELECT MAX((SELECT POINT(1,1))) AS p;
      SHOW CREATE TABLE t1;
      

      Both return:

      +-------+---------------------------------------------------------------------------+
      | Table | Create Table                                                              |
      +-------+---------------------------------------------------------------------------+
      | t1    | CREATE TABLE `t1` (
        `p` longblob
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+---------------------------------------------------------------------------+
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Git Integration

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