[MDEV-9405] SP do not preserve geometry type Created: 2016-01-13  Updated: 2019-11-18

Status: Open
Project: MariaDB Server
Component/s: Data types, GIS
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: datatype, upstream

Issue Links:
Relates
relates to MDEV-9425 Hybrid functions and UNION do not pre... Open
relates to MDEV-11303 MIN and MAX do not preserve GEOMETRY ... Open
relates to MDEV-11304 SP do not preserve SRID Open
relates to MDEV-12560 Wrong data type for SELECT NULL UNION... Closed
relates to MDEV-12665 Hybrid functions do not preserve geom... Closed
relates to MDEV-12668 SRID is not preserved in UNION, VIEW,... Open
Epic Link: Data type cleanups

 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.


Generated at Thu Feb 08 07:34:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.