mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 10:56:12 +01:00 
			
		
		
		
	 8dffaaef72
			
		
	
	
	8dffaaef72
	
	
	
		
			
			Field::is_equal(): treat old type and new one without AUTO_INCREMENT as equal Closes #1208
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| create table t(id int primary key, a int) engine=InnoDB;
 | |
| insert into t (id, a) values (1, 1);
 | |
| alter table t modify column id int auto_increment;
 | |
| check table t;
 | |
| Table	Op	Msg_type	Msg_text
 | |
| test.t	check	status	OK
 | |
| insert into t (a) values (2);
 | |
| alter table t modify column id int, algorithm=instant;
 | |
| check table t;
 | |
| Table	Op	Msg_type	Msg_text
 | |
| test.t	check	status	OK
 | |
| insert into t (id, a) values (3, 3);
 | |
| select * from t;
 | |
| id	a
 | |
| 1	1
 | |
| 2	2
 | |
| 3	3
 | |
| check table t;
 | |
| Table	Op	Msg_type	Msg_text
 | |
| test.t	check	status	OK
 | |
| drop table t;
 |