diff options
author | unknown <monty@mysql.com> | 2004-01-30 11:31:49 +0100 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-01-30 11:31:49 +0100 |
commit | 8ab97bb111b75a66cfee409123a34da2647bcf99 (patch) | |
tree | d3c5d5db30bbe294fdd3dedd00206f07a8e5c3ce /mysql-test | |
parent | bbd2adf4ba6ec2086a5e8eeaa89f56f1abee02f6 (diff) | |
parent | f120273dd284ff4df9649191e8cc37b2d84dd033 (diff) | |
download | mariadb-git-8ab97bb111b75a66cfee409123a34da2647bcf99.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/my/mysql-4.0
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/innodb.result | 3 | ||||
-rw-r--r-- | mysql-test/t/innodb.test | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/innodb.result b/mysql-test/r/innodb.result index ce5491a718f..ca4a49fea4e 100644 --- a/mysql-test/r/innodb.result +++ b/mysql-test/r/innodb.result @@ -1243,3 +1243,6 @@ a 3 4 drop table t1; +CREATE TABLE t1 (`id 1` INT NOT NULL, PRIMARY KEY (`id 1`)) TYPE=INNODB; +CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id), FOREIGN KEY (`t1_id`) REFERENCES `t1`(`id 1`) ON DELETE CASCADE ) TYPE=INNODB; +drop table t1,t2; diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index 7cc509caf74..51fadccdc1c 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -869,3 +869,12 @@ truncate table t1; insert into t1 (a) values (NULL),(NULL); SELECT * from t1; drop table t1; + +# +# Test dictionary handling with spaceand quoting +# + +CREATE TABLE t1 (`id 1` INT NOT NULL, PRIMARY KEY (`id 1`)) TYPE=INNODB; +CREATE TABLE t2 (id INT PRIMARY KEY, t1_id INT, INDEX par_ind (t1_id), FOREIGN KEY (`t1_id`) REFERENCES `t1`(`id 1`) ON DELETE CASCADE ) TYPE=INNODB; +#show create table t2; +drop table t1,t2; |