mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
5.5 merge
This commit is contained in:
@@ -33,5 +33,5 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
COUNT(*)
|
||||
2
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
include/rpl_end.inc
|
||||
|
||||
@@ -313,7 +313,7 @@ CREATE TABLE `t``1` ( `a``` INT PRIMARY KEY) ENGINE=innodb;
|
||||
CREATE TABLE `t``2` ( `b``` INT PRIMARY KEY, `c``` INT NOT NULL,
|
||||
FOREIGN KEY fk (`c```) REFERENCES `t``1`(`a```)) ENGINE=innodb;
|
||||
TRUNCATE `t``1`;
|
||||
ERROR 42000: Cannot truncate a table referenced in a foreign key constraint (`db1``; select 'oops!'`.`t``2`, CONSTRAINT `INNODB_FOREIGN_KEY_NAME` FOREIGN KEY (`c```) REFERENCES `db1``; select 'oops!'`.`t``1` (`a```))
|
||||
ERROR 42000: Cannot truncate a table referenced in a foreign key constraint (`db1``; select 'oops!'`.`t``2`, CONSTRAINT `t``2_ibfk_1` FOREIGN KEY (`c```) REFERENCES `db1``; select 'oops!'`.`t``1` (`a```))
|
||||
DROP TABLE `t``2`;
|
||||
DROP TABLE `t``1`;
|
||||
*** Test correct quoting of DELETE FROM statement binlogged for HEAP table that is emptied due to server restart
|
||||
|
||||
@@ -44,7 +44,7 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
# Cleanup
|
||||
connection master;
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
sync_slave_with_master;
|
||||
|
||||
# End of test
|
||||
|
||||
@@ -182,7 +182,6 @@ use `db1``; select 'oops!'`;
|
||||
CREATE TABLE `t``1` ( `a``` INT PRIMARY KEY) ENGINE=innodb;
|
||||
CREATE TABLE `t``2` ( `b``` INT PRIMARY KEY, `c``` INT NOT NULL,
|
||||
FOREIGN KEY fk (`c```) REFERENCES `t``1`(`a```)) ENGINE=innodb;
|
||||
--replace_regex /t@[0-9]+_ibfk_[0-9]+/INNODB_FOREIGN_KEY_NAME/
|
||||
--error ER_TRUNCATE_ILLEGAL_FK
|
||||
TRUNCATE `t``1`;
|
||||
DROP TABLE `t``2`;
|
||||
|
||||
Reference in New Issue
Block a user