diff options
author | monty@mashka.mysql.fi <> | 2002-11-24 15:47:19 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-11-24 15:47:19 +0200 |
commit | dfb60ca085104981a35f2ba72fa30a01b1befa07 (patch) | |
tree | ed4766483373d3e3ccd10186eea178ace4e50ae4 /mysql-test/t/constraints.test | |
parent | e60050c4dd652c7a431aebeb95b7dd944be87bf8 (diff) | |
download | mariadb-git-dfb60ca085104981a35f2ba72fa30a01b1befa07.tar.gz |
Added new ANSI functions LOCALTIME, LOCALTIMESTAMP and CURRENT_USER
Added CEIL as an alias for CEILING
Cleaned up CHECK constraint handling.
(We don't anymore require braces after CHECK)
Added casting to CHAR.
Diffstat (limited to 'mysql-test/t/constraints.test')
-rw-r--r-- | mysql-test/t/constraints.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/constraints.test b/mysql-test/t/constraints.test new file mode 100644 index 00000000000..8682cdc42a2 --- /dev/null +++ b/mysql-test/t/constraints.test @@ -0,0 +1,21 @@ +# +# Testing of constraints +# Currently MySQL only ignores the syntax. +# +drop table if exists t1; + +create table t1 (a int check (a>0)); +insert into t1 values (1); +insert into t1 values (0); +drop table t1; +create table t1 (a int ,b int, check a>b); +insert into t1 values (1,0); +insert into t1 values (0,1); +drop table t1; +create table t1 (a int ,b int, constraint abc check (a>b)); +insert into t1 values (1,0); +insert into t1 values (0,1); +drop table t1; +create table t1 (a int null); +insert into t1 values (1),(NULL); +drop table t1; |