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
		
	
	
		
			863 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			863 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Bug #48024 Innodb doesn't work with multi-statements
 | |
| 
 | |
| --source include/have_innodb.inc
 | |
| 
 | |
| CREATE TABLE bug48024(a int PRIMARY KEY,b int NOT NULL,KEY(b)) ENGINE=InnoDB;
 | |
| CREATE TABLE bug48024_b(b int PRIMARY KEY) ENGINE=InnoDB;
 | |
| # Bug #53644 InnoDB thinks that /*/ starts and ends a comment
 | |
| ALTER TABLE bug48024 /*/ADD CONSTRAINT FOREIGN KEY(c) REFERENCES(a),/*/
 | |
| ADD CONSTRAINT FOREIGN KEY(b) REFERENCES bug48024_b(b);
 | |
| 
 | |
| DROP TABLE bug48024,bug48024_b;
 | |
| 
 | |
| # Work around Bug #53750 (failure in mysql-test-run --ps-protocol)
 | |
| -- disable_ps_protocol
 | |
| delimiter |;
 | |
| CREATE TABLE bug48024(a int PRIMARY KEY,b int NOT NULL,KEY(b)) ENGINE=InnoDB;
 | |
| CREATE TABLE bug48024_b(b int PRIMARY KEY) ENGINE=InnoDB;
 | |
| ALTER TABLE bug48024 /*/ADD CONSTRAINT FOREIGN KEY(c) REFERENCES(a),/*/
 | |
| ADD CONSTRAINT FOREIGN KEY(b) REFERENCES bug48024_b(b)|
 | |
| delimiter ;|
 | |
| 
 | |
| DROP TABLE bug48024,bug48024_b;
 |