23 lines
		
	
	
		
			434 B
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			434 B
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								drop table if exists t1;
							 | 
						||
| 
								 | 
							
								set names utf8;
							 | 
						||
| 
								 | 
							
								create table t1 (s1 int)
							 | 
						||
| 
								 | 
							
								partition by list (s1)
							 | 
						||
| 
								 | 
							
								(partition c values in (1),
							 | 
						||
| 
								 | 
							
								partition Ç values in (3));
							 | 
						||
| 
								 | 
							
								insert into t1 values (1),(3);
							 | 
						||
| 
								 | 
							
								select * from t1;
							 | 
						||
| 
								 | 
							
								s1
							 | 
						||
| 
								 | 
							
								1
							 | 
						||
| 
								 | 
							
								3
							 | 
						||
| 
								 | 
							
								flush tables;
							 | 
						||
| 
								 | 
							
								set names latin1;
							 | 
						||
| 
								 | 
							
								select * from t1;
							 | 
						||
| 
								 | 
							
								s1
							 | 
						||
| 
								 | 
							
								1
							 | 
						||
| 
								 | 
							
								3
							 | 
						||
| 
								 | 
							
								drop table t1;
							 | 
						||
| 
								 | 
							
								create table t1 (a varchar(1), primary key (a))
							 | 
						||
| 
								 | 
							
								partition by list (ascii(a))
							 | 
						||
| 
								 | 
							
								(partition p1 values in (65));
							 | 
						||
| 
								 | 
							
								ERROR HY000: This partition function is not allowed
							 |