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

json_set returns NULL instead of object

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • N/A
    • JSON
    • None

    Description

      In MySQL 5.7:

      SELECT JSON_SET('{}', '$.age', 87); 
      +-----------------------------+
      | JSON_SET('{}', '$.age', 87) |
      +-----------------------------+
      | {"age": 87}                 |
      +-----------------------------+
      

      In MariaDB 10.2:

      SELECT JSON_SET('{}', '$.age', 87); 
      +-----------------------------+
      | JSON_SET('{}', '$.age', 87) |
      +-----------------------------+
      | NULL                        |
      +-----------------------------+
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              greenman Ian Gilfillan
              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.