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

JSON type alias is insufficiently compatible

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.2.7
    • 10.2.8
    • Data types, JSON
    • None

    Description

      Now it maps to TEXT. It'd be more compatible to map it to

        LONGTEXT CHARACTER SET utf8mb4 CHECK(JSON_VALID(col))
      

      But auto-adding a constraint is questionable. An unexpected constraint in the table definition, performance implications, strange errors if one manually specifies some constraint for this column.

      Attachments

        Issue Links

          Activity

            serg Sergei Golubchik created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Description Now it maps to {{TEXT}}. It'd be more compatible to map it to
            {code:sql}
              LONGTEXT CHARACTER SET utf8mb4 CHECK(JSON_VALID(col))
            {code}
            Now it maps to {{TEXT}}. It'd be more compatible to map it to
            {code:sql}
              LONGTEXT CHARACTER SET utf8mb4 CHECK(JSON_VALID(col))
            {code}
            But auto-adding a constraint is questionable. An unexpected constraint in the table definition, performance implications, strange errors if one manually specifies some constraint for this column.
            serg Sergei Golubchik made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2.8 [ 22544 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 81658 ] MariaDB v4 [ 152478 ]

            People

              serg Sergei Golubchik
              serg Sergei Golubchik
              Votes:
              1 Vote for this issue
              Watchers:
              3 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.