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

JSON_EXTRACT not returning multiple values for same path

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
    • 10.4, 10.5, 10.6, 10.11, 11.0, 11.1
    • JSON
    • None

    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:
            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.