~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/csv/tests/r/csv_alter_table.result

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
DROP TABLE IF EXISTS t1;
3
3
CREATE TEMPORARY 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    
9
5
ALTER TABLE t1 DROP COLUMN b;
10
 
DESC t1;
11
 
Field   Type    Null    Key     Default Extra
12
 
a       int     NO              NULL    
13
6
ALTER TABLE t1 MODIFY a BIGINT NOT NULL;
14
 
DESC t1;
15
 
Field   Type    Null    Key     Default Extra
16
 
a       bigint  NO              NULL    
17
7
ALTER TABLE t1 CHANGE a a INT NOT NULL;
18
 
DESC t1;
19
 
Field   Type    Null    Key     Default Extra
20
 
a       int     NO              NULL    
21
8
DROP TABLE t1;
22
9
# ===== csv_alter_table.2 =====
23
10
DROP TABLE IF EXISTS t1;
26
13
CREATE TEMPORARY TABLE t1 (a int NOT NULL) ENGINE = CSV;
27
14
ALTER TABLE t1 ADD COLUMN b CHAR(5);
28
15
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    
32
16
ALTER TABLE t1 MODIFY a BIGINT;
33
17
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    
37
18
ALTER TABLE t1 CHANGE a a INT;
38
19
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    
42
20
DROP TABLE t1;