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

Incorrect result of JSON_QUERY and JSON_KEY_VALUE with wildcard

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4, 11.8, 12.3, 13.1
    • 11.4, 11.8, 12.3, 13.1
    • JSON
    • None

    Description

      Hi,

      I found that the JSON_QUERY and JSON_KEY_VALUE with a wildcard only return the first item of the JSON data.

      This is an example:

      SELECT JSON_QUERY('[{"a":1},{"b":2}]', '$[*]'); -- {"a":1}
      SELECT JSON_KEY_VALUE('[{"a":1},{"b":2}]', '$[*]'); -- [{"key": "a", "value": 1}]
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              ChiZhang Chi Zhang
              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.