[MDEV-27359] Crossed JSON_VALID constraint imposes JSON property to a wrong column Created: 2021-12-24 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Notice, in the CREATE statement below the constraint belonging to the column b:
However, the constraint actually imposes JSON format on the column b rather than column a.
Notice:
It's opposite to what the CHECK constraint says! |