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

Cursor protocol cuts off the end of json boolean

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.4(EOL), 10.5(EOL), 10.6, 10.9(EOL), 10.10(EOL), 11.0(EOL), 11.1(EOL), 11.2(EOL)
    • 10.11.19, 11.4.13, 11.8.9, 12.3.3, 13.0.2
    • JSON
    • None
    • Unexpected results
    • When fetching a false value from a JSON function using a SQL cursor, the "false" was truncated to "fals" due to an incorrect width in the protocol

    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

            People

              rucha174 Rucha Deodhar
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0d
                  0d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2d 1h
                  2d 1h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.