~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# TODO: enable these tests when RENAME DATABASE is implemented.
2
#
3
# --disable_warnings
4
# drop database if exists testdb1;
5
# --enable_warnings
6
# 
7
# create database testdb1 default character set latin2;
8
# use testdb1;
9
# create table t1 (a int);
10
# insert into t1 values (1),(2),(3);
11
# show create database testdb1;
12
# show tables;
13
# rename database testdb1 to testdb2;
14
# --error 1049
15
# show create database testdb1;
16
# show create database testdb2;
17
# select database();
18
# show tables;
19
# select a from t1 order by a;
20
# drop database testdb2;
21
# 
22
#
23
# Bug#19392 Rename Database: Crash if case change
24
#
25
# create database testdb1;
26
# --error 1007
27
# rename database testdb1 to testdb1;
28
# drop database testdb1;
29
30
#
31
# WL#4030 (Deprecate RENAME DATABASE: replace with ALTER DATABASE <name> UPGRADE)
32
#
33
34
--error ER_PARSE_ERROR
35
rename database testdb1 to testdb2;
36
37
--error ER_WRONG_USAGE
38
ALTER DATABASE wrong UPGRADE DATA DIRECTORY NAME;
39
40
--error ER_WRONG_USAGE
41
ALTER DATABASE `#mysql41#not-supported` UPGRADE DATA DIRECTORY NAME;
42
43
--error ER_WRONG_USAGE
44
ALTER DATABASE `#mysql51#not-yet` UPGRADE DATA DIRECTORY NAME;
45
46
--error ER_WRONG_USAGE
47
ALTER DATABASE `#mysql50#` UPGRADE DATA DIRECTORY NAME;
48
49
--error ER_BAD_DB_ERROR
50
ALTER DATABASE `#mysql50#upgrade-me` UPGRADE DATA DIRECTORY NAME;
51
52
53