MDEV-7255 Failures in engines/* tests, part 5

RENAME TABLE on a non-existing table produces a better error message
This commit is contained in:
Elena Stepanova 2014-12-04 02:17:09 +04:00
parent d5f52fec77
commit f02f06172c
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ ERROR 42S01: Table 't1' already exists
RENAME TABLE t3 TO t1; RENAME TABLE t3 TO t1;
ERROR 42S01: Table 't1' already exists ERROR 42S01: Table 't1' already exists
RENAME TABLE t3 TO doesnotexist.t1; RENAME TABLE t3 TO doesnotexist.t1;
ERROR HY000: Can't find file: './test/t3.frm' (errno: 2 "No such file or directory") ERROR 42S02: Table 'test.t3' doesn't exist
SHOW TABLES; SHOW TABLES;
Tables_in_test Tables_in_test
t1 t1

View file

@ -11,7 +11,7 @@ let $ENGINE=`select variable_value from information_schema.global_variables wher
RENAME TABLE t2 TO t1; RENAME TABLE t2 TO t1;
--error 1050 --error 1050
RENAME TABLE t3 TO t1; RENAME TABLE t3 TO t1;
--error 1017 --error 1146
RENAME TABLE t3 TO doesnotexist.t1; RENAME TABLE t3 TO doesnotexist.t1;
SHOW TABLES; SHOW TABLES;
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;