2
# TODO: enable these tests when RENAME DATABASE is implemented.
5
# drop database if exists testdb1;
8
# create database testdb1 default character set latin2;
10
# create table t1 (a int);
11
# insert into t1 values (1),(2),(3);
12
# show create database testdb1;
14
# rename database testdb1 to testdb2;
16
# show create database testdb1;
17
# show create database testdb2;
20
# select a from t1 order by a;
21
# drop database testdb2;
24
# Bug#19392 Rename Database: Crash if case change
26
# create database testdb1;
28
# rename database testdb1 to testdb1;
29
# drop database testdb1;
32
# WL#4030 (Deprecate RENAME DATABASE: replace with ALTER DATABASE <name> UPGRADE)
35
--error ER_PARSE_ERROR
36
rename database testdb1 to testdb2;
38
--error ER_WRONG_USAGE
39
ALTER DATABASE wrong UPGRADE DATA DIRECTORY NAME;
41
--error ER_WRONG_USAGE
42
ALTER DATABASE `#mysql41#not-supported` UPGRADE DATA DIRECTORY NAME;
44
--error ER_WRONG_USAGE
45
ALTER DATABASE `#mysql51#not-yet` UPGRADE DATA DIRECTORY NAME;
47
--error ER_WRONG_USAGE
48
ALTER DATABASE `#mysql50#` UPGRADE DATA DIRECTORY NAME;
50
--error ER_BAD_DB_ERROR
51
ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME;