From a175314c3e5827eb193872241446f2f8f5c9d33c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:07:14 +0200 Subject: Adding upstream version 1:10.5.12. Signed-off-by: Daniel Baumann --- mysql-test/main/check_constraint_show.test | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 mysql-test/main/check_constraint_show.test (limited to 'mysql-test/main/check_constraint_show.test') diff --git a/mysql-test/main/check_constraint_show.test b/mysql-test/main/check_constraint_show.test new file mode 100644 index 00000000..4d57f247 --- /dev/null +++ b/mysql-test/main/check_constraint_show.test @@ -0,0 +1,8 @@ +# Table with 2 column-level check constraints and 1 table-level check constraint +create or replace table t1( c1 int check( c1 > 0 ), c2 int check( c2 > 0 ), c3 int, constraint `range` check( ( c3 >= c1 ) and ( c3 <= c2 ) ), primary key( c1 ) ); +show create table t1; + +# Show all constraints, including check constraints +select * from information_schema.table_constraints where table_name = 't1'; + +drop table t1; -- cgit v1.2.3