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

weird behavior with json extract

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.11.9, 11.4.4
    • N/A
    • JSON, Parser, Server
    • None
    • linux debian docker

    Description

      select json_extract('', '$');
      +-----------------------+
      | json_extract('', '$') |
      +-----------------------+
      | NULL                  |
      +-----------------------+
       
      1 row in set, 1 warning (0.000 sec)
       
      insert into tab(col) values(NULL);
      Query OK, 1 row affected (0.002 sec)
       
      insert into tab(col) values(json_extract('', '$'));
      ERROR 4037 (HY000): Unexpected end of JSON text in argument 1 to function 'json_extract'

      Attachments

        Activity

          People

            Unassigned Unassigned
            joe_nolann joe nolann
            Votes:
            1 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.