mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	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.
		
			
				
	
	
		
			17 lines
		
	
	
		
			459 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			459 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 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;
 |