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

Different order of JSON items causes different results

    XMLWordPrintable

Details

    Description

      Hi,

      In JSON, the order of items should has no influence on the results; however, the following test case shows a counterexample:

      SELECT ST_ASTEXT(ST_GEOMFROMGEOJSON('{"type":"GeometryCollection","geometries":[]}')); -- GEOMETRYCOLLECTION EMPTY
      SELECT ST_ASTEXT(ST_GEOMFROMGEOJSON('{"geometries":[],"type":"GeometryCollection"}')); -- NULL
      SHOW WARNINGS; -- Warning	4038	Syntax error in JSON text in argument 1 to function 'st_geomfromgeojson' at position 18
      

      Attachments

        Issue Links

          Activity

            People

              gkodinov Georgi Kodinov
              ChiZhang Chi Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.