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

Unexpected type cast from array to string in JSON_ARRAY

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 13.1
    • N/A
    • JSON
    • None
    • Not for Release Notes

    Description

      Hi,

      I found that when using JSON_KEYS as the input of JSON_ARRAY, the return type of JSON_KEYS is cast from array to string. There is an example:

      SELECT JSON_ARRAY(JSON_KEYS('{"a":1}')); -- ["[\"a\"]"]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChiZhang Chi Zhang
            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.