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

            rucha174 Rucha Deodhar added a comment - Patch: https://github.com/MariaDB/server/commit/b1f19f6ccc68d1cf097c46e6dec5d25e538221c2

            ok to push.

            holyfoot Alexey Botchkov added a comment - ok to push.
            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

            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.