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

SP do not preserve geometry type

    XMLWordPrintable

Details

    Description

      DROP FUNCTION IF EXISTS f1;
      CREATE FUNCTION f1() RETURNS POINT RETURN POINT(1,1);
      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 SELECT f1() AS a;
      SHOW CREATE TABLE t1;
      

      returns

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

      The expected column type is POINT.

      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:

                Git Integration

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