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

Json Range not work wirh JSON_REMOVE

    XMLWordPrintable

Details

    Description

      to reproduce:

      DROP TABLE t3;
       
      CREATE TABLE t3 (
       
        j JSON 
       
      );
       
       
       
      INSERT INTO t3 (j) VALUES ('[{"id": 1, "name": "Monty"},{"id": 2, "name": "Widenius"},{"id": 3, "name": "Michael"}]');
       
      INSERT INTO t3 (j) VALUES ('[{"id": 1, "name": "Monty"},{"id": 2, "name": "Widenius"},{"id": 3, "name": "Michael"}]');
       
       
       
      SELECT JSON_REMOVE(j, '$[0 to 1]')  FROM t
      

      Result
      (NULL)
      (NULL)

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            Richard Richard Stracke
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.