From: Date: September 6 2005 3:08pm Subject: bk commit into 5.0 tree (osku:1.1961) BUG#12084 List-Archive: http://lists.mysql.com/internals/29368 X-Bug: 12084 Message-Id: Below is the list of changes that have just been committed into a local 5.0 repository of osku. When osku does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1961 05/09/06 16:08:05 osku@127.(none) +2 -0 Add testcase for bug #12084. mysql-test/t/innodb.test 1.106 05/09/06 16:08:02 osku@127.(none) +15 -0 Add testcase for bug #12084. mysql-test/r/innodb.result 1.131 05/09/06 16:08:02 osku@127.(none) +12 -0 Add testcase for bug #12084. # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: osku # Host: 127.(none) # Root: /home/osku/mysql/5.0/12084 --- 1.130/mysql-test/r/innodb.result 2005-08-30 13:25:02 +03:00 +++ 1.131/mysql-test/r/innodb.result 2005-09-06 16:08:02 +03:00 @@ -2527,3 +2527,15 @@ id 1 DROP TABLE t2, t1; +CREATE TABLE t1 +( +id INT PRIMARY KEY +) ENGINE=InnoDB; +CREATE TEMPORARY TABLE t2 +( +id INT NOT NULL PRIMARY KEY, +b INT, +FOREIGN KEY (b) REFERENCES test.t1(id) +) ENGINE=InnoDB; +Got one of the listed errors +DROP TABLE t1; --- 1.105/mysql-test/t/innodb.test 2005-09-01 18:27:01 +03:00 +++ 1.106/mysql-test/t/innodb.test 2005-09-06 16:08:02 +03:00 @@ -1451,3 +1451,18 @@ INSERT INTO t1 (id) VALUES (NULL); SELECT * FROM t1; DROP TABLE t2, t1; + +-- Test that foreign keys in temporary tables are not accepted (bug #12084) +CREATE TABLE t1 +( + id INT PRIMARY KEY +) ENGINE=InnoDB; + +--error 1005,1005 +CREATE TEMPORARY TABLE t2 +( + id INT NOT NULL PRIMARY KEY, + b INT, + FOREIGN KEY (b) REFERENCES test.t1(id) +) ENGINE=InnoDB; +DROP TABLE t1;