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

GIS: ST_ synonyms for functions are not consistent

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0, 10.1
    • Fix Version/s: 10.1.4
    • Component/s: GIS
    • Labels:

      Description

      For some functions there are ST_ synonyms, while for others (of the same kind) there are none. It makes SQL incompatible with e.g. PostGIS.

      Example:

      MariaDB [test]> select PolygonFromText();
      ERROR 1582 (42000): Incorrect parameter count in the call to native function 'PolygonFromText'
      MariaDB [test]> select MultiPolygonFromText();
      ERROR 1582 (42000): Incorrect parameter count in the call to native function 'MultiPolygonFromText'
      MariaDB [test]> select ST_PolygonFromText();
      ERROR 1582 (42000): Incorrect parameter count in the call to native function 'ST_PolygonFromText'
      MariaDB [test]> select ST_MultiPolygonFromText();
      ERROR 1305 (42000): FUNCTION test.ST_MultiPolygonFromText does not exist

      So, there are both PolygonFromText and ST_PolygonFromText, but only MultiPolygonFromText, no ST_MultiPolygonFromText.

      There might be other ones missing as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: