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

json_contains returns invalid results for object being a subset of the json_document

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.11, 11.4, 11.8, 13.2
    • N/A
    • JSON
    • None
    • Not for Release Notes

    Description

      SELECT JSON_CONTAINS('[{"key": "golden", "value": 2}]', JSON_OBJECT('key', 'golden'));
      1
      

      This should be false as the subset document isn't the same without the value: 2 as a member.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.