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: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • N/A
    • 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:
              2 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.