Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-27116

The SQL standard ST_NumInteriorRing function isn't recognised, only ST_NumInteriorRings

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.7.1
    • None
    • None
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukas.eder Lukas Eder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.