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

Incorrect behavior of JSON_OVERLAPS() on warning

Details

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

            lstartseva Lena Startseva created issue -
            lstartseva Lena Startseva made changes -
            Field Original Value New Value
            Description In test:
            {code}
            SELECT JSON_OVERLAPS('','');
            {code}

            *Expected result:*
            {code}
            SELECT JSON_OVERLAPS('','');
            JSON_OVERLAPS('','')
            0
            Warnings:
            Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_overlaps'
            {code}

            *Actual result:*
            {code}
            SELECT JSON_OVERLAPS('','');
            JSON_OVERLAPS('','')
            1
            Warnings:
            Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_overlaps'
            {code}

            The result is a warning and 1 (true),but I expect 0 or may be 'null'.
            In test:
            {code}
            SELECT JSON_OVERLAPS('','');
            {code}

            *Expected result:*
            {code}
            SELECT JSON_OVERLAPS('','');
            JSON_OVERLAPS('','')
            0
            Warnings:
            Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_overlaps'
            {code}

            *Actual result:*
            {code}
            SELECT JSON_OVERLAPS('','');
            JSON_OVERLAPS('','')
            1
            Warnings:
            Warning 4037 Unexpected end of JSON text in argument 1 to function 'json_overlaps'
            {code}

            The result is a warning and 1 (true),but I expect 0 or may be 'null', because we cannot compare this two objects
            lstartseva Lena Startseva made changes -
            Summary Incorrect behavior ща JSON_OVERLAPS() on warning Incorrect behavior of JSON_OVERLAPS() on warning
            lstartseva Lena Startseva made changes -
            rucha174 Rucha Deodhar made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            rucha174 Rucha Deodhar added a comment - Patch: https://github.com/MariaDB/server/commit/b1f19f6ccc68d1cf097c46e6dec5d25e538221c2
            rucha174 Rucha Deodhar made changes -
            Assignee Rucha Deodhar [ rucha174 ] Alexey Botchkov [ holyfoot ]
            Status In Progress [ 3 ] In Review [ 10002 ]

            ok to push.

            holyfoot Alexey Botchkov added a comment - ok to push.
            holyfoot Alexey Botchkov made changes -
            Assignee Alexey Botchkov [ holyfoot ] Rucha Deodhar [ rucha174 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            rucha174 Rucha Deodhar added a comment -

            pushed to bb-10.9-MDEV-27677 and preview-10.9-MDEV-27677

            rucha174 Rucha Deodhar added a comment - pushed to bb-10.9- MDEV-27677 and preview-10.9- MDEV-27677
            rucha174 Rucha Deodhar made changes -
            Fix Version/s 10.9.0 [ 27113 ]
            Fix Version/s 10.9 [ 26905 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]

            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.