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

JSON_SET returns NULL instead of object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 10.2.9
    • Component/s: JSON
    • Labels:
      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

              Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              greenman Ian Gilfillan
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: