mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
after-merge fixes
This commit is contained in:
@ -72,16 +72,31 @@ drop table t1;
|
||||
#
|
||||
|
||||
create temporary table t1(a int not null primary key, b int, key(b)) engine=innodb;
|
||||
--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
--error 1005
|
||||
create temporary table t2(a int, foreign key(a) references t1(a)) engine=innodb;
|
||||
--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
show warnings;
|
||||
--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
--error 1005
|
||||
alter table t1 add foreign key(b) references t1(a);
|
||||
--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
show warnings;
|
||||
# remove echos and uncomment the commented when MDEV-8569 is fixed
|
||||
--echo create temporary table t2(a int, foreign key(a) references t1(a)) engine=innodb;
|
||||
--echo ERROR HY000: Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||
--echo show warnings;
|
||||
--echo Level Code Message
|
||||
--echo Warning 150 Create table `mysqld.1`.`t2` with foreign key constraint failed. Referenced table `mysqld.1`.`t1` not found in the data dictionary close to foreign key(a) references t1(a)) engine=innodb.
|
||||
--echo Error 1005 Can't create table `test`.`t2` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||
--echo Warning 1215 Cannot add foreign key constraint
|
||||
--echo alter table t1 add foreign key(b) references t1(a);
|
||||
--echo ERROR HY000: Can't create table `test`.`#sql-temporary` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||
--echo show warnings;
|
||||
--echo Level Code Message
|
||||
--echo Warning 150 Alter table `mysqld.1`.`t1` with foreign key constraint failed. Referenced table `mysqld.1`.`t1` not found in the data dictionary close to foreign key(b) references t1(a).
|
||||
--echo Error 1005 Can't create table `test`.`#sql-temporary` (errno: 150 "Foreign key constraint is incorrectly formed")
|
||||
--echo Warning 1215 Cannot add foreign key constraint
|
||||
#--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
#--error 1005
|
||||
#create temporary table t2(a int, foreign key(a) references t1(a)) engine=innodb;
|
||||
#--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
#show warnings;
|
||||
#--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
#--error 1005
|
||||
#alter table t1 add foreign key(b) references t1(a);
|
||||
#--replace_regex /#sql-[0-9a-f_]*`/#sql-temporary`/
|
||||
#show warnings;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user