[MDEV-7563] Support CHECK constraint as in (or close to) SQL Standard Created: 2015-02-09 Updated: 2018-09-28 Resolved: 2016-07-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Fix Version/s: | 10.2.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 11 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||
| Epic Link: | Oracle Compatibility | ||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Compatibility-1 | ||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Support CHECK constraint as in (or close to) SQL Standard. The following syntaxes will be supported (they are already supported by the current MariaDB parser, but does nothing): As part of column definition: As an independent constraint: ALTER TABLE DROP CONSTRAINT `A`; |
| Comments |
| Comment by Paul Weiss [ 2015-08-17 ] |
|
This one is very high priority for me. |
| Comment by Todd Allen [ 2016-04-17 ] |
|
I would also very much like to see this implemented. |
| Comment by Laurent Langlois [ 2016-04-25 ] |
|
This issue if also of rather high priority for me. We are in the process of migrating databases from Sybase to MariaDB and our database makes extensive use of Sybase "rules." From what I know, it would seem that to implement the equivalent, 'check constraint' would be much easier to use (implement, maintain, etc.) than triggers. |
| Comment by ManasaTulluri [ 2016-05-03 ] |
|
Hi Dev Team, Kindly let us know if you are implementing check constraints any time soon in the up coming releases. Please let us know tentative date. We are migrating from Oracle to Mariadb and this will be very handy for us. Thanks & Regards, |
| Comment by Sergei Golubchik [ 2016-05-03 ] |
|
Yes, there are plans to do it. But at the moment there's nothing final yet. Ask in a few weeks, please. |
| Comment by Michael Widenius [ 2016-06-18 ] |
|
This is now available in bb-10.2-default branch. Will be pushed into 10.2.1 shortly. |