mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			79 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
--source include/have_partition.inc
 | 
						|
--source include/have_innodb.inc
 | 
						|
 | 
						|
#
 | 
						|
# Bug #14673: Wrong InnoDB default row format
 | 
						|
#
 | 
						|
create table t1 (a int) engine=innodb partition by hash(a) ;
 | 
						|
show table status like 't1';
 | 
						|
drop table t1;
 | 
						|
 | 
						|
#
 | 
						|
# Bug 21173: SHOW TABLE STATUS crashes server in InnoDB
 | 
						|
#
 | 
						|
create table t1 (a int)
 | 
						|
engine = innodb
 | 
						|
partition by key (a);
 | 
						|
show table status;
 | 
						|
insert into t1 values (0), (1), (2), (3);
 | 
						|
show table status;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
create table t1 (a int auto_increment primary key)
 | 
						|
engine = innodb
 | 
						|
partition by key (a);
 | 
						|
show table status;
 | 
						|
insert into t1 values (NULL), (NULL), (NULL), (NULL);
 | 
						|
show table status;
 | 
						|
insert into t1 values (NULL), (NULL), (NULL), (NULL);
 | 
						|
show table status;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
#
 | 
						|
# BUG 19122 Crash after ALTER TABLE t1 REBUILD PARTITION p1
 | 
						|
#
 | 
						|
create table t1 (a int)
 | 
						|
partition by key (a)
 | 
						|
(partition p1 engine = innodb);
 | 
						|
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
alter table t1 rebuild partition p1;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
#
 | 
						|
# Bug 21339: Crash in Explain Partitions
 | 
						|
#
 | 
						|
create table t1 (a date)
 | 
						|
engine = innodb
 | 
						|
partition by range (year(a))
 | 
						|
(partition p0 values less than (2006),
 | 
						|
 partition p1 values less than (2007));
 | 
						|
explain partitions select * from t1
 | 
						|
where a between '2006-01-01' and '2007-06-01';
 | 
						|
drop table t1;
 | 
						|
 | 
						|
#
 | 
						|
# Bug 20397: Partitions: Crash when using non-existing engine
 | 
						|
#
 | 
						|
create table t1 (a int)
 | 
						|
engine = x
 | 
						|
partition by key (a);
 | 
						|
show create table t1;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
create table t1 (a int)
 | 
						|
engine = innodb
 | 
						|
partition by list (a)
 | 
						|
(partition p0 values in (0));
 | 
						|
 | 
						|
alter table t1 engine = x;
 | 
						|
show create table t1;
 | 
						|
drop table t1;
 | 
						|
 | 
						|
 |