~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-21 16:39:40 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101221163940-c1pfo1jjvx7909xq
Tags: 2010.12.06-0ubuntu1
* New upstream release.
* Added libaio-dev build depend for InnoDB.
* Removed libpcre patch - applied upstream.

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);