mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
When attempting to rename a table to a non-existing database, InnoDB would misleadingly report "OS error 71" when in fact the error code is InnoDB's own (OS_FILE_NOT_FOUND), and not report both pathnames. Errors on rename could occur due to reasons connected to either pathname. os_file_handle_rename_error(): New function, to report errors in renaming files.
12 lines
289 B
Plaintext
12 lines
289 B
Plaintext
--source include/have_innodb.inc
|
|
|
|
call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");
|
|
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
--replace_result "\\" "/"
|
|
--error ER_ERROR_ON_RENAME
|
|
RENAME TABLE t1 TO non_existing_db.t1;
|
|
|
|
# Cleanup
|
|
DROP TABLE t1;
|