question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `CHECK` constraints in MariaDB

See original GitHub issue

When looking at, or creating, constraints of tables in a MariaDB database, CHECK constraints don’t show up, nor can they be created. Previously in MariaDB, CHECK was ignored, but as of MariaDB 10.2.1 CHECK constraints are no longer ignored.

Tables using CHECK constraints can be created by taking the DDL of the table, pasting it into a SQL-editor, manually specifying the constraints, and then running the script. However, there is no indication in the “Constraints” tab that these constraints are there.

Being able to use these constraints directly in the “Create new table” option, and having them show up if/when they are there, would be very useful.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kseniiaguzeevacommented, Jun 29, 2020

1 verified 2 verified 3 do not have an enviroment to test. Check constraint custom names can be assigned also via UI. 4 Ok, new ticket will be created. https://github.com/dbeaver/dbeaver/issues/9122

0reactions
ndiaz-addeparcommented, Nov 5, 2021

MySQL 8 doesn’t support CHECK constraints (build 7.1.1.202006231441). Other points are not tested yet

This has not been true since 8.0.16

Read more comments on GitHub >

github_iconTop Results From Across the Web

CONSTRAINT - MariaDB Knowledge Base
Constraints provide restrictions on the data you can add to a table. This allows you to enforce data integrity from MariaDB, rather than...
Read more >
List table check constraints in MariaDB database - Dataedo
The query below lists table check constraints. Notes. Before MariaDB 10.2.1 constraint expressions were accepted in the syntax but ignored.
Read more >
Check Constraint in MySQL not working - YouTube
Check Constraint is table constraint that restricts the data you can add to table. In this video we get to know that Check...
Read more >
MariaDB Check Constraint + Examples - DatabaseFAQs.com
A CHECK constraint verifies that a value in a column or collection of columns meets a Boolean expression before adding or upgrading it....
Read more >
how to create check constraint in maria DB for checking char ...
but when i insert other character like (s,z,x) is store in database which means Check constraint is not applied,. i also visited the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found