Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 11.6(EOL)
Description
DROP FUNCTION IF EXISTS f1; |
DROP TABLE IF EXISTS t1; |
 |
CREATE FUNCTION f1() RETURNS POINT REF_SYSTEM_ID=10 RETURN POINT(1,1); |
CREATE OR REPLACE TABLE t1 SELECT f1() AS a; |
SHOW CREATE TABLE t1; |
SELECT G_TABLE_NAME,G_GEOMETRY_COLUMN,SRID FROM INFORMATION_SCHEMA.GEOMETRY_COLUMNS WHERE G_TABLE_NAME='t1'; |
+--------------+-------------------+------+
|
| G_TABLE_NAME | G_GEOMETRY_COLUMN | SRID |
|
+--------------+-------------------+------+
|
| t1 | a | 0 |
|
+--------------+-------------------+------+
|
The above looks wrong. The expected SRID value would be 10, as defined in the function return data type.
Attachments
Issue Links
- relates to
-
MDEV-9405 SP do not preserve geometry type
- Closed
-
MDEV-9425 Hybrid functions and UNION do not preserve spatial REF_SYSTEM_ID
- Confirmed
-
MDEV-11303 MIN and MAX do not preserve GEOMETRY data type
- Closed