Debian Codegraph @

mysql-test/suite/engines/funcs/t/tc_rename_error.test

raw
1 --disable_warnings
2 let $ENGINE=`select variable_value from performance_schema.global_variables where variable_name='DEFAULT_STORAGE_ENGINE'`;
3 --enable_warnings
4
5 --disable_warnings
6 DROP TABLE IF EXISTS t1,t2;
7 --enable_warnings
8 CREATE TABLE t1(c1 INTEGER NULL);
9 CREATE TABLE t2(c1 INTEGER NULL);
10 SHOW TABLES;
11 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
12 SHOW CREATE TABLE t1;
13 --error 1050
14 RENAME TABLE t2 TO t1;
15 --error 1050
16 RENAME TABLE t3 TO t1;
17 --error ER_BAD_DB_ERROR
18 RENAME TABLE t3 TO doesnotexist.t1;
19 SHOW TABLES;
20 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
21 SHOW CREATE TABLE t1;
22 --replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" ""
23 SHOW CREATE TABLE t2;
24 DROP TABLE t2;
25 SHOW TABLES;
26
27 DROP TABLE t1;