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.
		
			
				
	
	
		
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			327 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| #
 | |
| # Make sure http://bugs.mysql.com/41904 remains fixed.
 | |
| #
 | |
| 
 | |
| -- source include/not_embedded.inc
 | |
| 
 | |
| CREATE TABLE bug41904 (id INT PRIMARY KEY, uniquecol CHAR(15)) ENGINE=InnoDB;
 | |
| 
 | |
| INSERT INTO bug41904 VALUES (1,NULL), (2,NULL);
 | |
| 
 | |
| CREATE UNIQUE INDEX ui ON bug41904 (uniquecol);
 | |
| 
 | |
| DROP TABLE bug41904;
 |