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

GIS: Functions return NULL instead of specified -1 for NULL arguments

    XMLWordPrintable

Details

    • 10.1.6-1

    Description

      MariaDB [test]> select ST_IsRing(NULL);
      +-----------------+
      | ST_IsRing(NULL) |
      +-----------------+
      |            NULL |
      +-----------------+
      1 row in set (0.00 sec)

      etc.

      Specification in the email said:

      IsRing(ln)
      The return type is Integer, with a return value of 1 for
      TRUE, 0 for FALSE, and -1 for UNKNOWN
      corresponding to a function invocation on NULL

      etc.

      Possibly it's just a documentation issue. PostgreSQL also returns NULL.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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