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