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

JSON_OBJECT returns null with strings containing backticks

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.6, 10.2(EOL)
    • 10.2.9
    • JSON
    • 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

            holyfoot Alexey Botchkov
            Guido Cella Guido Cella
            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.