[MDEV-27116] The SQL standard ST_NumInteriorRing function isn't recognised, only ST_NumInteriorRings Created: 2021-11-24  Updated: 2021-11-24

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.7.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Lukas Eder Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The ISO/IEC 13249-3:2016 specifies a ST_NumInteriorRing() function, which uses a singular "Ring" word. A lot of RDBMS have rectified this flaw in the standard by offering an alias ST_NumInteriorRings(), and so does MariaDB:

SELECT
    st_numinteriorrings(st_geomfromtext('POLYGON (
      (-3 -3, 3 -3, 3 3, -3 3, -3 -3),
      (-2 -2, 2 -2, 2 2, -2 2, -2 -2), 
      (-1 -1, 1 -1, 1 1, -1 1, -1 -1)
    )', 0)) n

Unfortunately, st_numinteriorring() doesn't work. I suggest supporting both names, just like MySQL.


Generated at Thu Feb 08 09:50:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.