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

Create better descriptive error message in case of wrong arguments for geometry types

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • None
    • GIS, Server
    • None

    Description

      When geometry is not well constructed we get the NULL, as documentation said.

      SELECT polygon(point(0,0),point(0,1),point(1,1),point(1,0),point(0,0))
      NULL
      

      In case of MySQL an descriptive error message is raised:

      SELECT polygon(point(0,0),point(0,1),point(1,1),point(1,0),point(0,0))
      ERROR 1210 (HY000) at line 1: Incorrect arguments to polygon
      

      When we get in case if NULL is an argument, we get the NULL result what is ok.
      See more example from here.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              anel Anel Husakovic
              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.