~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/tests/r/alter_table.result

  • Committer: Brian Aker
  • Date: 2010-12-07 09:12:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1985.
  • Revision ID: brian@tangent.org-20101207091212-1m0w20tck6z7632m
This is a fix for bug lp:686197

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
col6 int not null, to_be_deleted int);
10
10
insert into t1 values (2,4,3,5,"PENDING",1,7);
11
11
alter table t1
12
 
add column col4_5 varchar(20) not null after col4,
13
 
add column col7 varchar(30) not null after col5,
14
 
add column col8 datetime not null default '1000-01-01 00:00:00', drop column to_be_deleted,
 
12
ADD COLUMN col4_5 varchar(20) DEFAULT "cat" not null after col4,
 
13
ADD COLUMN col7 varchar(30) DEFAULT "dog" not null after col5,
 
14
ADD COLUMN col8 datetime not null default '1000-01-01 00:00:00', drop column to_be_deleted,
15
15
change column col2 fourth varchar(30) not null after col3,
16
16
modify column col6 int not null first;
17
17
select * from t1;
18
18
col6    col1    col3    fourth  col4    col4_5  col5    col7    col8
19
 
1       2       3       4       5               PENDING         1000-01-01 00:00:00
 
19
1       2       3       4       5       cat     PENDING dog     1000-01-01 00:00:00
20
20
drop table t1;
21
21
create table t1 (bandID INT NOT NULL PRIMARY KEY, payoutID int NOT NULL);
22
22
insert into t1 (bandID,payoutID) VALUES (1,6),(2,6),(3,4),(4,9),(5,10),(6,1),(7,12),(8,12);