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

JSON_OBJECT returns null with strings containing backticks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2, 10.2.6
    • Fix Version/s: 10.2.9
    • Component/s: JSON
    • Labels:
    • Environment:
      Ubuntu 16.04 and Debian 8

      Description

      JSON_OBJECT seems to return NULL when one of its arguments is a string containing one or more backticks. This can be reproduced with:

      SELECT JSON_OBJECT('foo', '`')
      

      or

      SELECT JSON_OBJECT("foo", "bar`bar")
      

      or

      SELECT JSON_OBJECT('`', 'foo')
      

        Attachments

          Activity

            People

            Assignee:
            holyfoot Alexey Botchkov
            Reporter:
            Guido Cella Guido Cella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: