~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ===== csv_alter_table.1 =====
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a int NOT NULL) ENGINE = CSV;
ALTER TABLE t1 ADD COLUMN b CHAR(5) NOT NULL;
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
b	varchar(5)	NO		NULL	
ALTER TABLE t1 DROP COLUMN b;
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
ALTER TABLE t1 MODIFY a BIGINT NOT NULL;
DESC t1;
Field	Type	Null	Key	Default	Extra
a	bigint	NO		NULL	
ALTER TABLE t1 CHANGE a a INT NOT NULL;
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
DROP TABLE t1;
# ===== csv_alter_table.2 =====
DROP TABLE IF EXISTS t1;
Warnings:
Note	1051	Unknown table 't1'
CREATE TABLE t1 (a int NOT NULL) ENGINE = CSV;
ALTER TABLE t1 ADD COLUMN b CHAR(5);
ERROR 42000: The storage engine for the table doesn't support nullable columns
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
ALTER TABLE t1 MODIFY a BIGINT;
ERROR 42000: The storage engine for the table doesn't support nullable columns
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
ALTER TABLE t1 CHANGE a a INT;
ERROR 42000: The storage engine for the table doesn't support nullable columns
DESC t1;
Field	Type	Null	Key	Default	Extra
a	int	NO		NULL	
DROP TABLE t1;