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

Enforce check constraint on JSON type

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.4.3
    • JSON
    • None

    Description

      Since there's no context where someone will want a JSON type without the constraint, and excluding it causes compatibility problems with MySQL, why not map

      CREATE TABLE t (j JSON);
      

      to

      CREATE TABLE t (
        j JSON 
        CHECK (JSON_VALID(j))
      );
      

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              greenman Ian Gilfillan
              Votes:
              1 Vote for this issue
              Watchers:
              7 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.