diff options
author | unknown <kostja@bodhi.(none)> | 2007-07-19 19:56:07 +0400 |
---|---|---|
committer | unknown <kostja@bodhi.(none)> | 2007-07-19 19:56:07 +0400 |
commit | 93de616578d601d49dfee8927bdd539da94dc69f (patch) | |
tree | f673a4d7dde4d65bbf38a7daab0ec5bdf7e93b4e /mysql-test/r/create.result | |
parent | 346ea19be724044ce0f86c58587ae7ae6a3015dc (diff) | |
download | mariadb-git-93de616578d601d49dfee8927bdd539da94dc69f.tar.gz |
A post-merge fix
Diffstat (limited to 'mysql-test/r/create.result')
-rw-r--r-- | mysql-test/r/create.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/create.result b/mysql-test/r/create.result index cdbb767dd9f..de25fb754e4 100644 --- a/mysql-test/r/create.result +++ b/mysql-test/r/create.result @@ -1516,6 +1516,22 @@ t1 CREATE TABLE `t1` ( `c17` int(11) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 drop table t1; + +Bug #26104 Bug on foreign key class constructor + +Check that ref_columns is initalized correctly in the constructor +and semantic checks in mysql_prepare_table work. + +We do not need a storage engine that supports foreign keys +for this test, as the checks are purely syntax-based, and the +syntax is supported for all engines. + +drop table if exists t1,t2; +create table t1(a int not null, b int not null, primary key (a, b)); +create table t2(a int not null, b int not null, c int not null, primary key (a), +foreign key fk_bug26104 (b,c) references t1(a)); +ERROR 42000: Incorrect foreign key definition for 'fk_bug26104': Key reference and table reference don't match +drop table t1; End of 5.0 tests CREATE TABLE t1 (a int, b int); insert into t1 values (1,1),(1,2); |