1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Bug #12902967 Creating self referencing fk on same index unhandled,

confusing error. Updated the test script to work properly on
windows platform.
This commit is contained in:
Annamalai Gurusami
2012-04-18 15:16:11 +05:30
parent 0eea06c5d0
commit 46c51c40e1

View File

@@ -10,7 +10,6 @@
--source include/not_embedded.inc
let error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err;
--remove_file $error_log
--source include/restart_mysqld.inc
create table t1 (f1 integer primary key) engine innodb;
@@ -21,7 +20,7 @@ create table t1 (f1 integer primary key) engine innodb;
--replace_regex /'\.\/test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
--error ER_ERROR_ON_RENAME
alter table t1 add constraint c1 foreign key (f1) references t1(f1);
--source include/restart_mysqld.inc
perl;
$file = "$ENV{'error_log'}";