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

JSON_VALID treats integers as valid JSON

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.2.11
    • N/A
    • JSON
    • None

    Description

      The JSON_VALID function notes that integers are valid JSON objects.

      Query to Reproduce

      SELECT JSON_VALID(12345);
      

      Result:

      +-------------------+
      | JSON_VALID(12345) |
      +-------------------+
      |                 1 |
      +-------------------+
      

      Expected result:

      +-------------------+
      | JSON_VALID(12345) |
      +-------------------+
      |                 0 |
      +-------------------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nandren Nick Andren
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.