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.
		
			
				
	
	
		
			23 lines
		
	
	
		
			787 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			787 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --source include/have_innodb.inc
 | |
| #
 | |
| # Bug#44571 InnoDB Plugin crashes on ADD INDEX
 | |
| # http://bugs.mysql.com/44571
 | |
| # Please also refer to related fix in
 | |
| # http://bugs.mysql.com/47621
 | |
| #
 | |
| 
 | |
| CREATE TABLE bug44571 (foo INT) ENGINE=InnoDB;
 | |
| ALTER TABLE bug44571 CHANGE foo bar INT;
 | |
| # Create index with the old column name will fail,
 | |
| # because the CHANGE foo bar is successful. And
 | |
| # the column name change would communicate to
 | |
| # InnoDB with the fix from bug #47621
 | |
| -- error ER_KEY_COLUMN_DOES_NOT_EXITS
 | |
| ALTER TABLE bug44571 ADD INDEX bug44571b (foo);
 | |
| # The following create indexes should succeed,
 | |
| # indirectly confirm the CHANGE foo bar is successful.
 | |
| ALTER TABLE bug44571 ADD INDEX bug44571c (bar);
 | |
| DROP INDEX bug44571c ON bug44571;
 | |
| CREATE INDEX bug44571c ON bug44571 (bar);
 | |
| DROP TABLE bug44571;
 |