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

JSON_VALID( '{"a":"b","a":"c"}' ) returns 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.2.21
    • Fix Version/s: N/A
    • Component/s: JSON
    • Labels:

      Description

      In the tested version (10.2.21), function json_valid does not check for duplicate key, and returns 1 on the invalid input

      { "a":"b", "a":"c" }

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            m-dolev Moshe Dolev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: