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

JSON_EXTRACT not returning multiple values for same path

    XMLWordPrintable

Details

    Description

      MariaDB [(none)]> select JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]');
      +--------------------------------------------------------+
      | JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]') |
      +--------------------------------------------------------+
      | [40]                                                   |
      +--------------------------------------------------------+
      

      While MySQL:

      +--------------------------------------------------------+
      | JSON_EXTRACT("[1, 2, [30, 40]]", '$[2][1]', '$[2][1]') |
      +--------------------------------------------------------+
      | [40, 40]                                               |
      +--------------------------------------------------------+
      

      Documentation in our case says it should so I consider this a bug.

      Attachments

        Activity

          People

            rucha174 Rucha Deodhar
            cvicentiu Vicențiu Ciorbaru
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.