[MDEV-12560] Wrong data type for SELECT NULL UNION SELECT Point(1,1) Created: 2017-04-22  Updated: 2017-05-05  Resolved: 2017-05-05

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 10.1, 10.2, 10.3
Fix Version/s: 10.3.1

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
Relates
relates to MDEV-9405 SP do not preserve geometry type Open
relates to MDEV-12495 Conditional jump depends on uninitial... Closed
relates to MDEV-12665 Hybrid functions do not preserve geom... Closed
relates to MDEV-12668 SRID is not preserved in UNION, VIEW,... Open

 Description   

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 AS SELECT NULL UNION SELECT POINT(1,1);
SHOW CREATE TABLE t1;

returns

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

This is wrong. The expected column type is POINT.



 Comments   
Comment by Alexander Barkov [ 2017-05-05 ]

Pushed to bb-10.2-ext

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