[MDEV-30461] Cannot use variables inside geometry construtors Created: 2023-01-24  Updated: 2023-01-25  Resolved: 2023-01-25

Status: Closed
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 10.6.11
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Luciano Barcaro Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-27666 User variable not parsed as geometry ... Closed

 Description   

MariaDB is complaining about use of variables inside geometry constructor.

-- Define 2 simple points
SET @p1=POINT(1, 1), @p2=POINT(2,2);
 
-- Check their types
SELECT ST_GEOMETRYTYPE(@p1), ST_GEOMETRYTYPE(@p2);
 
-- Try to create a multipoint without variables - works as expected
SELECT MULTIPOINT(POINT(1, 1), POINT(2, 2));
 
-- Try to create a multipoint with variables - Fail
SELECT MULTIPOINT(@p1, @p2);
-- Fail with message Illegal non geometric '@`p1`' value found during parsing



 Comments   
Comment by Alice Sherepa [ 2023-01-25 ]

Thank you fr the report! This is the same issue as MDEV-27666

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