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

LINESTRING of one point considered valid

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4
    • 11.4
    • GIS
    • None

    Description

      A LineString of one point has no segment. MySQL rejects it and MariaDB accepts it.

      MariaDB:

      MariaDB [test]> SELECT ST_ASTEXT(ST_GEOMFROMTEXT('LINESTRING(0 0)')) AS wkt;
      +-----------------+
      | wkt             |
      +-----------------+
      | LINESTRING(0 0) |
      +-----------------+
      1 row in set (0.001 sec)
      

      MySQL 9.6.0:

      mysql> SELECT ST_ASTEXT(ST_GEOMFROMTEXT('LINESTRING(0 0)')) AS wkt;
      ERROR 3037 (22023): Invalid GIS data provided to function st_geomfromtext.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Gosselin Dave Gosselin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 10m
                10m

                Git Integration

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