Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
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
- relates to
-
MDEV-9144 JSON data type
-
- Closed
-
-
MDEV-13313 JSON type alias is insufficiently compatible
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue relates to MDEV-13777 [ MDEV-13777 ] |
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
{{code}} CREATE TABLE t (j JSON); {{code}} to {{code}} CREATE TABLE t ( j JSON CHECK (JSON_VALID(j)) ); {{code}} |
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
{code:sql} CREATE TABLE t (j JSON); {code} to {code:sql} CREATE TABLE t ( j JSON CHECK (JSON_VALID(j)) ); {code} |
Link | This issue relates to MDEV-13777 [ MDEV-13777 ] |
Link |
This issue relates to |
Epic Link | PT-76 [ 68557 ] |
Assignee | Alexey Botchkov [ holyfoot ] |
Fix Version/s | 10.4 [ 22408 ] |
Assignee | Alexey Botchkov [ holyfoot ] | Michael Widenius [ monty ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 10.4.3 [ 23230 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 82802 ] | MariaDB v4 [ 133351 ] |
I considered that in
MDEV-13313. To quotethat's why I haven't done it. Basically, I can see some users being for and some being against this feature and I cannot say what approach will work best for them all.