mirror of
https://github.com/MariaDB/server.git
synced 2025-07-07 06:01:31 +03:00
Reasons: alter_tablespace.rdiff: tc_rename_error.result: from monty@askmonty.org-20120529213755-876ptdhhaj0t7l8r (Added text for errno in error messages) insert_time.result: from sergii@pisem.net-20120908101555-37w00eyfrd9noc06 (MDEV-457 - Inconsistent data truncation) misc.result: from igor@askmonty.org-20130109033433-5awdv0w6vbpigltw (MDEV-3806/mwl248 - Engine independent statistics) tbl_opt_row_format.rdiff: from monty@askmonty.org-20120706161018-y5teinbuqpchle2m (Fixed wrong error codes) vcol.rdiff: sergii@pisem.net-20121217100039-ikj1820nrku7p6d5 (simplify the handler api)
38 lines
863 B
Plaintext
38 lines
863 B
Plaintext
DROP TABLE IF EXISTS t1,t2;
|
|
CREATE TABLE t1(c1 INTEGER NULL);
|
|
CREATE TABLE t2(c1 INTEGER NULL);
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t1
|
|
t2
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=latin1
|
|
RENAME TABLE t2 TO t1;
|
|
ERROR 42S01: Table 't1' already exists
|
|
RENAME TABLE t3 TO t1;
|
|
ERROR 42S01: Table 't1' already exists
|
|
RENAME TABLE t3 TO doesnotexist.t1;
|
|
ERROR HY000: Can't find file: './test/t3.frm' (errno: 2 "No such file or directory")
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t1
|
|
t2
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=latin1
|
|
SHOW CREATE TABLE t2;
|
|
Table Create Table
|
|
t2 CREATE TABLE `t2` (
|
|
`c1` int(11) DEFAULT NULL
|
|
) ENGINE=ENGINE DEFAULT CHARSET=latin1
|
|
DROP TABLE t2;
|
|
SHOW TABLES;
|
|
Tables_in_test
|
|
t1
|
|
DROP TABLE t1;
|