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

JSON with empty string is parsed as null since last releases

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      It seems some recent change has broken JSON parsing/quering.

      SQL:

      select json_value('""', '$')
      

      started to return:

      +-----------------------+
      | json_value('""', '$') |
      +-----------------------+
      | NULL                  |
      +-----------------------+
      

      but I expect the following result instead:

      +-----------------------+
      | json_value('""', '$') |
      +-----------------------+
      |                       |
      +-----------------------+
      

      since version:

      • 10.11.14
      • 11.4.8
      • 11.8.3
      • 12.0.2

      I belive this functional change is unintended as no other DB vendors behave like this.

      Please confirm and fix.

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              mv Michael Voříšek
              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.