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

Cursor protocol cuts off the end of json body for some json functions

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.9(EOL), 10.10(EOL), 11.0(EOL), 11.1(EOL), 11.2(EOL)
    • 10.5, 10.6
    • JSON
    • None

    Description

      Testcase (run MTR test with --cursor-protocol):

      select json_array_append('["a", "b"]', '$', FALSE);
      

      Expected result:

      json_array_append('["a", "b"]', '$', FALSE)
      ["a", "b", false]
      

      Actual result:

      json_array_append('["a", "b"]', '$', FALSE)
      ["a", "b", fals
      

      The same behavior repeats for json_insert, json_set, json_type, json_unquote, json_object, json_loose, json_detailed

      Attachments

        Issue Links

          Activity

            lstartseva Lena Startseva created issue -
            lstartseva Lena Startseva made changes -
            Field Original Value New Value
            lstartseva Lena Startseva made changes -
            Assignee Oleksandr Byelkin [ sanja ]
            lstartseva Lena Startseva made changes -
            Description *Testcase* (run MTR test with --cursor-protocol):
            {code:sql}
            select json_array_append('["a", "b"]', '$', FALSE);
            {code}

            *Expected result:*
            {code:sql}
            json_array_append('["a", "b"]', '$', FALSE)
            ["a", "b", false]
            {code}

            *Actual result:*
            {code:sql}
            json_array_append('["a", "b"]', '$', FALSE)
            ["a", "b", fals
            {code}

            The same behavior repeats for json_insert, json_set, json_type, json_unquote, json_object, json_loose, json_detailed
            *Testcase* (run MTR test with --cursor-protocol):
            {code:sql}
            select json_array_append('["a", "b"]', '$', FALSE);
            {code}

            *Expected result:*
            {code:sql}
            json_array_append('["a", "b"]', '$', FALSE)
            ["a", "b", false]
            {code}

            *Actual result:*
            {code:sql}
            json_array_append('["a", "b"]', '$', FALSE)
            ["a", "b", fals
            {code}

            The same behavior repeats for _json_insert, json_set, json_type, json_unquote, json_object, json_loose, json_detailed_
            lstartseva Lena Startseva made changes -
            Summary Cursor protocol cuts off the end of json body for sone json functions Cursor protocol cuts off the end of json body for some json functions
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.10 [ 27530 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 11.0 [ 28320 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.4 [ 22408 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 11.1 [ 28549 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 11.2(EOL) [ 28603 ]

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.