Commit d2e1ed8b authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Fix innodb.rename_table for embedded

An embedded run will output the full path name instead of a relative
one. Update results to cover both cases.
parent 170bec36
call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)"); call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");
CREATE TABLE t1 (a INT) ENGINE=InnoDB; CREATE TABLE t1 (a INT) ENGINE=InnoDB;
RENAME TABLE t1 TO non_existing_db.t1; RENAME TABLE t1 TO non_existing_db.t1;
ERROR HY000: Error on rename of './test/t1' to './non_existing_db/t1' (errno: -1 "Internal error < 0 (Not system error)") ERROR HY000: Error on rename of '**path-to-t1**' to '**path-to-non-existing-db-t1**' (errno: -1 "Internal error < 0 (Not system error)")
DROP TABLE t1; DROP TABLE t1;
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)"); call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");
CREATE TABLE t1 (a INT) ENGINE=InnoDB; CREATE TABLE t1 (a INT) ENGINE=InnoDB;
--replace_result "\\" "/" --replace_regex /\'.*t1\' to/'**path-to-t1**' to/ /to \'.*non.*t1\'/to '**path-to-non-existing-db-t1**'/
--error ER_ERROR_ON_RENAME --error ER_ERROR_ON_RENAME
RENAME TABLE t1 TO non_existing_db.t1; RENAME TABLE t1 TO non_existing_db.t1;
......
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