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

Incorrect behavior of JSON_OVERLAPS() on warning

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.9
    • 10.9.0
    • JSON
    • 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

              rucha174 Rucha Deodhar
              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.