~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/csv_alter_table.result

  • Committer: Monty Taylor
  • Date: 2009-04-14 19:16:51 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 994.
  • Revision ID: mordred@inaugust.com-20090414191651-ltbww6hpqks8k7qk
Clarified instructions in README.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;
 
5
DESC t1;
 
6
Field   Type    Null    Key     Default Extra
 
7
a       int     NO              NULL    
 
8
b       varchar(5)      NO              NULL    
5
9
ALTER TABLE t1 DROP COLUMN b;
 
10
DESC t1;
 
11
Field   Type    Null    Key     Default Extra
 
12
a       int     NO              NULL    
6
13
ALTER TABLE t1 MODIFY a BIGINT NOT NULL;
 
14
DESC t1;
 
15
Field   Type    Null    Key     Default Extra
 
16
a       bigint  NO              NULL    
7
17
ALTER TABLE t1 CHANGE a a INT NOT NULL;
 
18
DESC t1;
 
19
Field   Type    Null    Key     Default Extra
 
20
a       int     NO              NULL    
8
21
DROP TABLE t1;
9
22
# ===== csv_alter_table.2 =====
10
23
DROP TABLE IF EXISTS t1;
11
24
Warnings:
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
 
29
DESC t1;
 
30
Field   Type    Null    Key     Default Extra
 
31
a       int     NO              NULL    
16
32
ALTER TABLE t1 MODIFY a BIGINT;
17
33
ERROR 42000: The storage engine for the table doesn't support nullable columns
 
34
DESC t1;
 
35
Field   Type    Null    Key     Default Extra
 
36
a       int     NO              NULL    
18
37
ALTER TABLE t1 CHANGE a a INT;
19
38
ERROR 42000: The storage engine for the table doesn't support nullable columns
 
39
DESC t1;
 
40
Field   Type    Null    Key     Default Extra
 
41
a       int     NO              NULL    
20
42
DROP TABLE t1;