mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	storage/innobase/handler/handler0alter.cc: for NEWDATE key_type says unsigned, thus col->prtype says unsigned, but field->flags says signed. Use the same flag for value retrieval that was used for value storage.
		
			
				
	
	
		
			17 lines
		
	
	
		
			602 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			602 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| # This is the test for bug 46676: mysqld got exception 0xc0000005
 | |
| # It is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
 | |
| # But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
 | |
| 
 | |
| 
 | |
| SET foreign_key_checks=0;
 | |
| CREATE TABLE t1 (id int, foreign key (id) references t2(id)) ENGINE=INNODB;
 | |
| CREATE TABLE t2 (id int, foreign key (id) references t1(id)) ENGINE=INNODB;
 | |
| SET foreign_key_checks=1;
 | |
| 
 | |
| # Server crashes
 | |
| SELECT COUNT(*) FROM information_schema.key_column_usage WHERE REFERENCED_TABLE_NAME in ('t1', 't2');
 | |
| 
 | |
| SET foreign_key_checks=0;
 | |
| DROP TABLE t1, t2;
 |