ClickHouse/tests/queries/0_stateless/01358_constexpr_constraint.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
386 B
MySQL
Raw Normal View History

2020-07-04 21:44:29 +00:00
CREATE TEMPORARY TABLE constrained
(
`URL` String,
CONSTRAINT identity CHECK domainWithoutWWW(URL) = domainWithoutWWW(URL),
2020-07-04 21:44:29 +00:00
CONSTRAINT is_utf8 CHECK isValidUTF8(URL)
);
insert into constrained values ('a');
DROP TEMPORARY TABLE constrained;
CREATE TEMPORARY TABLE constrained (x UInt8, CONSTRAINT bogus CHECK 0);
INSERT INTO constrained VALUES (1); -- { serverError 469 }