2010-05-14 16:31:44 +03:00
|
|
|
# Bug #48024 Innodb doesn't work with multi-statements
|
|
|
|
|
2012-02-07 16:22:36 +01:00
|
|
|
--source include/have_innodb.inc
|
2010-05-14 16:31:44 +03:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2010-05-18 16:10:36 +03:00
|
|
|
# Work around Bug #53750 (failure in mysql-test-run --ps-protocol)
|
|
|
|
-- disable_ps_protocol
|
2010-05-14 16:31:44 +03:00
|
|
|
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;
|