Commit 46c51c40 authored by Annamalai Gurusami's avatar Annamalai Gurusami

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

confusing error. Updated the test script to work properly on
windows platform. 
parent 0eea06c5
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
--source include/not_embedded.inc --source include/not_embedded.inc
let error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err; let error_log= $MYSQLTEST_VARDIR/log/mysqld.1.err;
--remove_file $error_log
--source include/restart_mysqld.inc --source include/restart_mysqld.inc
create table t1 (f1 integer primary key) engine innodb; create table t1 (f1 integer primary key) engine innodb;
...@@ -21,7 +20,7 @@ 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'/ --replace_regex /'\.\/test\/#sql-[0-9a-f_]*'/'#sql-temporary'/
--error ER_ERROR_ON_RENAME --error ER_ERROR_ON_RENAME
alter table t1 add constraint c1 foreign key (f1) references t1(f1); alter table t1 add constraint c1 foreign key (f1) references t1(f1);
--source include/restart_mysqld.inc
perl; perl;
$file = "$ENV{'error_log'}"; $file = "$ENV{'error_log'}";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment