1
0
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:
Vicențiu Ciorbaru
2018-08-25 19:56:00 +03:00
parent d526679efd
commit b6f055025b
2 changed files with 33 additions and 33 deletions

View File

@ -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;