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

Incorrect result of JSON_OVERLAPS and JSON_CONTAINS

    XMLWordPrintable

Details

    Description

      Hi,

      In the following test case, the two arguments of JSON_OVERLAPS and JSON_CONTAINS are different; however, these four statements all return 1.

      SELECT JSON_OVERLAPS('9007199254740992','9007199254740993'); -- 1
      SELECT JSON_OVERLAPS('[9007199254740992]','[9007199254740993]'); -- 1
      SELECT JSON_CONTAINS('9007199254740992','9007199254740993'); -- 1
      SELECT JSON_CONTAINS('[9007199254740992]','9007199254740993'); --1
      

      Attachments

        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.