mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Make funcs_1.is_check_constraints deterministic
This commit is contained in:
@ -12,29 +12,29 @@ create table t0
|
||||
) ENGINE=myisam;
|
||||
|
||||
--vertical_results
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
ALTER TABLE t0
|
||||
ADD CONSTRAINT CHK_t0_t CHECK(t<100);
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
ALTER TABLE t0
|
||||
DROP CONSTRAINT CHK_t0_t;
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
CREATE TABLE t1
|
||||
( t int CHECK(t>2), # field constraint
|
||||
tt int, CONSTRAINT CHK_tt CHECK(tt<100) # table constraint
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
ALTER TABLE t1
|
||||
DROP CONSTRAINT CHK_tt;
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
create table t2
|
||||
(
|
||||
@ -44,12 +44,12 @@ end_date DATE,
|
||||
CONSTRAINT CHK_dates CHECK(start_date IS NULL) #table constraint
|
||||
)ENGINE=Innodb;
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
ALTER TABLE t1
|
||||
ADD CONSTRAINT CHK_new_ CHECK(t>tt);
|
||||
|
||||
SELECT * from information_schema.check_constraints;
|
||||
SELECT * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
|
||||
# Create table with same field and table check constraint name
|
||||
@ -61,7 +61,7 @@ CONSTRAINT b check (b>10) # table constraint
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
--horizontal_results
|
||||
select * from information_schema.check_constraints;
|
||||
select * from information_schema.check_constraints order by check_clause;
|
||||
|
||||
drop table t0;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user