-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for CHECK constraints (feature request) #13592
Comments
The MySQL Reference Manual says: Triggers should be used instead of check constraint. |
@nulll-pointer MariaDB normally supports |
@nulll-pointer you use mariadb |
@nulll-pointer according to the documentation link posted by Gemorroj, your MariaDB is too old. MySQL ignoring it doesn't mean we shouldn't implement it for MariaDB. |
I see this as a three-part issue:
|
Using version 4.7.4, this is more than enhancement, it is a bug. Right now, you can add the CHECK constraint with a custom SQL statement. Even though the parser indicates a syntax error, it works. But, when you try to export the table, the CHECK constraint is unrecognized and is ignored in the CREATE TABLE statement ... but so are ALL columns definitions afterward. That is a bug. |
Hey! I came here to suggest exactly this.
--
|
MariaDB (MySQL-compatible) added support for
CHECK
constraints to version 10.2.1 (stable=10.2.8). It would be very useful if PHPMyAdmin had a UI for adding and managing these in tbl_create.php and tbl_structure.php.(Update: see also phpmyadmin/sql-parser#167)
Edit: they are also not exported by export.php.
The text was updated successfully, but these errors were encountered: