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

JSON_EXISTS does not see keys that the recursive ** path finds below the top level

    XMLWordPrintable

Details

    Description

      Reproduced on 10.11.19 (debug build):

      SELECT JSON_EXISTS('{"a":{"c":1}}', '$**.c'),                       -- 0
             JSON_CONTAINS_PATH('{"a":{"c":1}}', 'one', '$**.c'),         -- 1
             JSON_EXTRACT('{"a":{"c":1}}', '$**.c');                      -- [1]

      JSON_EXISTS answers 0 while the other two, on the same arguments, find the key. Expected: 1.

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            chunlingqin chunlingqin
            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.