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

Incorrect behavior of JSON_OVERLAPS() on warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.9
    • Fix Version/s: 10.9.0
    • Component/s: JSON
    • Labels:
      None

      Description

      In test:

      SELECT JSON_OVERLAPS('','');
      

      Expected result:

      SELECT JSON_OVERLAPS('','');
      JSON_OVERLAPS('','')
      0
      Warnings:
      Warning	4037	Unexpected end of JSON text in argument 1 to function 'json_overlaps'
      

      Actual result:

      SELECT JSON_OVERLAPS('','');
      JSON_OVERLAPS('','')
      1
      Warnings:
      Warning	4037	Unexpected end of JSON text in argument 1 to function 'json_overlaps'
      

      The result is a warning and 1 (true),but I expect 0 or may be 'null', because we cannot compare this two objects

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rucha174 Rucha Deodhar
              Reporter:
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.