diff options
author | unknown <monty@mashka.mysql.fi> | 2002-11-24 15:47:19 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-11-24 15:47:19 +0200 |
commit | 1f12631c02fcb04fd5677bcacef11ab0c40d6961 (patch) | |
tree | ed4766483373d3e3ccd10186eea178ace4e50ae4 /mysql-test/r/constraints.result | |
parent | 293d5c6e68d5ea81e97c2799a8d2b615ce2b12fb (diff) | |
download | mariadb-git-1f12631c02fcb04fd5677bcacef11ab0c40d6961.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.
mysql-test/r/bigint.result:
Moved casting test to cast.test
mysql-test/r/func_time.result:
Test of new functions
mysql-test/t/bigint.test:
Moved casting test to cast.test
mysql-test/t/func_time.test:
Test of new functions
sql/item_create.cc:
Added casting to CHAR
sql/item_func.h:
Added casting to CHAR
sql/item_timefunc.h:
Added casting to CHAR
sql/lex.h:
Added new ANSI functions LOCALTIME, LOCALTIMESTAMP and CURRENT_USER
Added CEIL as an alias for CEILING
sql/sql_yacc.yy:
Cleaned up CHECK constraint handling.
Diffstat (limited to 'mysql-test/r/constraints.result')
-rw-r--r-- | mysql-test/r/constraints.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/constraints.result b/mysql-test/r/constraints.result new file mode 100644 index 00000000000..3b41e291e0f --- /dev/null +++ b/mysql-test/r/constraints.result @@ -0,0 +1,16 @@ +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; |