mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			695 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			695 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#
 | 
						|
# MDEV-371 Unique indexes for blobs
 | 
						|
#
 | 
						|
 | 
						|
create table t1(a blob , unique(a) using hash);
 | 
						|
--query_vertical show keys from t1;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
--error ER_TOO_LONG_KEY
 | 
						|
create table t1(a blob , unique(a) using btree);
 | 
						|
 | 
						|
create table t1(a int , unique(a) using hash);
 | 
						|
--query_vertical show keys from t1;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
create table t1(a int ,b int , c int,  unique(a, b, c) using hash);
 | 
						|
show keys from t1;
 | 
						|
insert into t1 values(1,1,1);
 | 
						|
--error ER_DUP_ENTRY
 | 
						|
insert into t1 values(1,1,1);
 | 
						|
drop table t1;
 | 
						|
 | 
						|
create table t1(a int ,b int , c int,  unique(a, b, c) using hash) engine=memory;
 | 
						|
show keys from t1;
 | 
						|
insert into t1 values(1,1,1);
 | 
						|
--error ER_DUP_ENTRY
 | 
						|
insert into t1 values(1,1,1);
 | 
						|
drop table t1;
 |