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

JSON_VALID validates invalid JSON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
    • Fix Version/s: N/A
    • Component/s: JSON
    • Labels:
      None

      Description

      10.7.0 d552e092c9f3e20da078d1b62b976f629f73d3a4 (Debug)

      10.7.0-dbg>SELECT JSON_VALID('{}');
      +------------------+
      | JSON_VALID('{}') |
      +------------------+
      |                1 |
      +------------------+
      1 row in set (0.000 sec)
       
      10.7.0-dbg>SELECT JSON_VALID('{\}');
      +-------------------+
      | JSON_VALID('{\}') |
      +-------------------+
      |                 1 |
      +-------------------+
      1 row in set (0.000 sec)
      

      Both, at least according to http://json-validator.com/ are invalid. The second is definitely invalid/cannot be valid.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serg Sergei Golubchik
              Reporter:
              Roel Roel Van de Paar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration